Wireless Communication Library Support Forum

Common => Common => Topic started by: Raj on November 03, 2008, 10:57:51 AM

Title: Need to know the current path.
Post by: Raj on November 03, 2008, 10:57:51 AM
Hi Mike,

I have an active connection with wclFTPClient.
I need to get all files in particular folder of the mobile,it include the subfolder into it.

I am facing the problem that I am not getting the current path, like wclFtpClient have setPath method, does wcl library expose some method to get current path.

and

can I set the path like  "//e:/Images/mypictures"
Title: Re: Need to know the current path.
Post by: Mike Petrichenko on November 03, 2008, 11:20:08 AM
Good day!

Unfrtunatelly no, OBEX FTP protocol does not provide such functions (this is no library's limitation). The good idea is t store your path in variable and modify it when you change the path.
Title: Re: Need to know the current path.
Post by: Raj on November 03, 2008, 12:13:41 PM
can I set the path like  "//e:/Images/mypictures"
Title: Re: Need to know the current path.
Post by: Mike Petrichenko on November 03, 2008, 12:17:27 PM
No. Unfortunatelly you can't. Only one folder down or up. Or to the root dir
Title: Re: Need to know the current path.
Post by: Raj on November 03, 2008, 01:10:26 PM
can we pull a folder directly over bluetooth ?
Title: Re: Need to know the current path.
Post by: Mike Petrichenko on November 03, 2008, 02:38:29 PM
OBEX FTP protocol allows only operations provided by the library:

1. Get directory listing
2. Put 1 file
3. Create directory
4. Delete directory (if empty)
5. Delete file
6. Move one directory up or down
7. Move to the root directory from any location
8. Get file

All other things should be based on this operations. No other operations are provided/allowed.