peacemaker Expert Licensed User Longtime User Sep 15, 2020 #1 HI, All Why FTPEntry is read-only ? It would be convenient to store there info during work with FTP. Who is Java-master, maybe to recompile the NET lib to have FTPEntry something like... B4X: Type FTPEntry2(id As Int, name As String, timestamp As Long, size As Long, FTPpath As String, LocalPath As String, status As String, DeleteAfter As Boolean) 'writable file info structure (FTP FTPEntry structure is read-only) and writeable...
HI, All Why FTPEntry is read-only ? It would be convenient to store there info during work with FTP. Who is Java-master, maybe to recompile the NET lib to have FTPEntry something like... B4X: Type FTPEntry2(id As Int, name As String, timestamp As Long, size As Long, FTPpath As String, LocalPath As String, status As String, DeleteAfter As Boolean) 'writable file info structure (FTP FTPEntry structure is read-only) and writeable...
DonManfred Expert Licensed User Longtime User Sep 15, 2020 #2 Create a FTPEntry2 Type in your main module. When getting a FTPEntry create a new FTPEntry2 based on the Values from FTPEntry. Work with FTPEntry2 which is not writeprotected. Types, List or Maps create in a Library are readonly in B4A. You always can create a new Map/List/Type based on the Original data. Upvote 0
Create a FTPEntry2 Type in your main module. When getting a FTPEntry create a new FTPEntry2 based on the Values from FTPEntry. Work with FTPEntry2 which is not writeprotected. Types, List or Maps create in a Library are readonly in B4A. You always can create a new Map/List/Type based on the Original data.
peacemaker Expert Licensed User Longtime User Sep 15, 2020 #3 DonManfred said: Work with FTPEntry2 which is not writeprotected. Click to expand... Yes, Don. My post is due to it's a pain to work so - always to sync one structure with another... Instead of just reading\writing... Upvote 0
DonManfred said: Work with FTPEntry2 which is not writeprotected. Click to expand... Yes, Don. My post is due to it's a pain to work so - always to sync one structure with another... Instead of just reading\writing...
DonManfred Expert Licensed User Longtime User Sep 15, 2020 #4 peacemaker said: is due to it's a pain to work so Click to expand... lol. I would use a sub which does the work (one time work to create the sub; easy to reuse). No pain needed Upvote 0
peacemaker said: is due to it's a pain to work so Click to expand... lol. I would use a sub which does the work (one time work to create the sub; easy to reuse). No pain needed
peacemaker Expert Licensed User Longtime User Sep 15, 2020 #5 I like the Type as it's easy to update and upgrage, but it needs lots of subs that all have the loop to work with such custom array, or list. To get any info, or save it - it needs to iteray the list .... Head is in pain Upvote 0
I like the Type as it's easy to update and upgrage, but it needs lots of subs that all have the loop to work with such custom array, or list. To get any info, or save it - it needs to iteray the list .... Head is in pain
peacemaker Expert Licensed User Longtime User Sep 15, 2020 #6 Issue is that FTPEntry can be got only after FTP.List, of all the files, and it's hard to process each file one by one: check, download if new, check again... Last edited: Sep 15, 2020 Upvote 0
Issue is that FTPEntry can be got only after FTP.List, of all the files, and it's hard to process each file one by one: check, download if new, check again...