moore_it Well-Known Member Licensed User Longtime User Nov 11, 2021 #1 Hi all, i need to download a txt file from FTP to file.dirinternal folder, it's possible ? Thanks
moore_it Well-Known Member Licensed User Longtime User Nov 11, 2021 #3 thanks for answer but when i try this B4X: Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase) wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean) If Success Then end if Success is always FALSE. The serverpath is right the files(i).name is right the device path is right ... i don't unterstand Upvote 0
thanks for answer but when i try this B4X: Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase) wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean) If Success Then end if Success is always FALSE. The serverpath is right the files(i).name is right the device path is right ... i don't unterstand
Star-Dust Expert Licensed User Longtime User Nov 11, 2021 #4 moore_it said: thanks for answer but when i try this B4X: Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase) wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean) If Success Then end if Success is always FALSE. The serverpath is right the files(i).name is right the device path is right ... i don't unterstand Click to expand... Check that the ftp address is correct and that the sub-folder inside DirInternal already exists Upvote 0
moore_it said: thanks for answer but when i try this B4X: Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase) wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean) If Success Then end if Success is always FALSE. The serverpath is right the files(i).name is right the device path is right ... i don't unterstand Click to expand... Check that the ftp address is correct and that the sub-folder inside DirInternal already exists
moore_it Well-Known Member Licensed User Longtime User Nov 11, 2021 #5 Hi, the ftp address is right infact i list the files in server folder. I think that the problem is no folder on device but i don't know how to view that it's impossible for me to view the content of dirinternal. Thanks Upvote 0
Hi, the ftp address is right infact i list the files in server folder. I think that the problem is no folder on device but i don't know how to view that it's impossible for me to view the content of dirinternal. Thanks
DonManfred Expert Licensed User Longtime User Nov 11, 2021 #6 B4A - Files (Core) B4A - Files (Core) Upvote 0
moore_it Well-Known Member Licensed User Longtime User Nov 11, 2021 #7 Ok i foun the mistake ! I've made the subfolder with separator error Thanks Upvote 0