Skip to main content
To test or verify FTP server functions, a test application isnโ€™t required. Perform FTP functions through the client connection.

Prerequisites

Before you begin, set up the device as described in Set up the device for Bluetooth FTP functions.

Create a folder

To create a folder on the remote device, run the following command from the obexctl menu:
You can verify folder creation on the server at the /var/bluetooth directory. Parameters <folder_name> is the new folder name. Example To create a folder called new_dir, run the following command:
Sample output

Change the current folder

To change the current folder of the remote device, run the following command from the obexctl menu:
Parameters <folder_path> is the folder that you intend to switch to. Example To change the current folder to new_dir, run the following command:
Sample output

Get current folder information

To get information about the current folder, run the following command from the obexctl menu:
Sample output

Copy a file to a remote device

To copy a local file to the remote device, run the following command from the obexctl menu:
Parameters
  • <source_file> is the local file.
  • <destination_file> is the target file on the remote device.
Example To copy a local file at Documents/ftp_client.txt to the ftp_client.txt on the remote device, run the following command:
Sample output

Copy a file from a remote device

Before you begin, change the current folder to the folder of the intended file. To copy a file from the remote device to a local directory, run the following command from the obexctl menu:
Parameters
  • <source_file> is the file on the remote device.
  • <destination_file> is the target file on the local device.
Example To copy ftp_client_2.txt file from the remote device to the local device, run the following command:
Sample output

Copy a file in a remote device

To copy a file from a directory to another directory on the remote device, run the following command from the obexctl menu:
Parameters
  • <source_file> is the file you intend to copy.
  • <destination_file> is the target location.
Example To copy ftp_client.txt to /new_dir_2/, run the following command:
Sample output

Move a file

To move a file from one folder to another on the remote device, run the following command from the obexctl menu:
Parameters
  • <source_file> is the file you intend to move.
  • <destination_file> is the target location.
Example To move ftp_client_2.txt file to /new_dir_2/, run the following command:
Sample output

Delete a file

To delete a file, run the following command from the obexctl menu:
Parameters <filename> is the file you intend to delete. Example To delete ftp_client.txt file, run the following command:
Sample output