I am in the middle of changing hosting companies and I am struggling to get FTP to work.
I have set up a user and can access the files with notpad++ via ftp without issues
This code does return success = true
But folder and files are empty.
Image is file structure
I must be doing something wrong. It worked with my previous host just fine.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I have set up a user and can access the files with notpad++ via ftp without issues
This code does return success = true
But folder and files are empty.
Image is file structure
I must be doing something wrong. It worked with my previous host just fine.
			
				B4X:
			
		
		
		'actual path
'ftp://lara-app%[email protected]/public_html/usersTools/1089/MyTools.txt
Private ftp As FTP
ftp.Initialize("ftp","ftp.locksdownunder.com.au",21, "[email protected]", "mypassword")
ftp.PassiveMode = True
ftp.List($"ftp.locksdownunder.com.au/public_html/usersTools/"$ & Main.userID)
Wait For FTP_ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry) '<----
If Success Then
    Log(Folders)
    Log(Files)
End If
#if b4a
ftp.Close
#End If 
				 
 
		 
			 
 
		 
 
		