Rockbox mail archive
Subject: Re: RE: Code for moving a file on disk
i had the same question months ago - when we haven't had file writing yet.
but i was told that the rename-function would be the correct function to call.
hope to see this 'move'-feature soon in cvs... ;-)
> A move in any case is simply a copy and delete, or a reassigning of the
> entry in the FAT if the bits themselves don't need to be moved. (That's why
> it takes so much longer to move across disks than to move on a single disk.)
> I would assume that if we have file writing capability, it can be used to
> move as well, but I *don't* know if it's been coded to allow for separate
> use. Linus?
> -----Original Message-----
> From: owner-rockbox_at_cool.haxx.se [mailto:owner-rockbox_at_cool.haxx.se]On
> Behalf Of for_spam_at_gmx.de
> Sent: Monday, January 13, 2003 6:50 PM
> To: rockbox_at_cool.haxx.se
> Subject: Code for moving a file on disk
> Hi there,
> thinking about implementing "delete while playing" feature in rockbox
> Instead of deleting, it would be nice to have hotkeys for moving file to
> special folders,
> e.g. from folder "2hear" to folder "good ones" or "trash".
> I wonder, if there is code in rockbox for MOVING a file to a special folder.
> I searched the sources, but i`d didn`t find a function "move".
> In file.c there is a function "int rename(const char* path, const char*
> Could this be the right one for moving files between different folders ?
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
Page was last modified "Jan 10 2012" The Rockbox Crew