Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#32 Add support for sending/receiving entire folders

Next release
open
nobody
5
2007-10-08
2007-10-08
Anonymous
No

Add support for sending/receiving entire folders, right now one need to create folder, navigate and then send all files to it, but it is difficult and very hard when there is a need to send more than 1 entire level of files (common for mp3 structured as artist/album)

Discussion

    • milestone: --> Next release
     
  • Logged In: YES
    user_id=1563482
    Originator: NO

    Hello.

    I understand what you're saying and I agree. Although, it is hard for me to develop and test such a feature due to some limitations of my test cellphone, which is a low-featured SonyEricsson phone (a K300i, barely supported by obexftp).

    But anyway, this feature is really useful and I will try to implement it for the next version.

    Thank you,
    Daniel.

     
  • Logged In: YES
    user_id=1282836
    Originator: NO

    I ain't sure the protocol support it, but you could implement it using already implemented features on your current version:
    1 - for each folder in current level, create a corresponding one in the device
    2 - for each file in current level, send it to the corresponding one in the device
    3 - for each folder in current level, call 1 recusively

    pseudo code:

    void copyFolder(String folderName)
    {
    createFolder(folderName);
    for (r in getFilesForFolder(folderName)) {
    if (r.isDirectory()) copyFolder(r.getPath())
    else copyFile(r.getPath());
    }
    }

     
  • Logged In: YES
    user_id=1563482
    Originator: NO

    Hi.

    You are perfectly right. It can be easily reproduced by re-using some classes that are currently available. However, the idea of releasing a feature that I am not able to 'reproduce' in my cellphone annoys me. :-P