After rebooting both my phone and the PC, I can connect to the FTPServer example using DirInternal. However, I am unable to change directories or transfer files either direction from DirInternal.
Here is the log from connecting and changing directories using DirRootExternal, which is what is included in the sample. I was also able to transfer files just fine.
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (activity_permissionresult)
running waiting messages (1)
** Activity (main) Resume **
client: USER Test
client: PASS test
User logged in: Test
client: SYST
client: FEAT
client: OPTS UTF8 ON
client: PWD
client: CWD /DCIM/Camera
CurrentPath: /DCIM/Camera
client: PWD
client: TYPE A
client: PASV
client: LIST -a
Data connection terminated: /DCIM/Camera
DataConnection_Close
client: CWD /DCIM
CurrentPath: /DCIM
client: PWD
client: TYPE A
client: PASV
DataConnection_Close
client: LIST -a
Data connection terminated: /DCIM
DataConnection_Close
client: CWD /
CurrentPath: /
client: PWD
client: TYPE A
client: PASV
DataConnection_Close
client: LIST -a
Data connection terminated: /
DataConnection_Close
client: PWD
client: PWD
client: TYPE A
terminated
DataConnection_Close
After changing to DirInternal, I get this:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
client: USER Test
client: PASS test
User logged in: Test
client: SYST
client: FEAT
client: OPTS UTF8 ON
client: PWD
client: CWD /
Data connection terminated: /
DataConnection_Close
Data connection terminated: /
DataConnection_Close
client: TYPE I
client: PASV
DataConnection_Close
client: RETR app_allow_list.txt
Data connection terminated: null
DataConnection_Close
client: CWD virtual_assets
terminated
DataConnection_Close
On the FTP client side (WinSCP), I get this error:
Copying files from remote side failed.
Invalid path: app_allow_list.txt
Or transferring from the PC to the phone, I get this:
Copying files to remote side failed.
Invalid path: image1.jpg