> > Cards are being used more and more on the Palm devices and the 
> > users start wondering why the file move within one card is so 
> > slow, when Windows or PPC manage to do it fast. I personally 
> > don't understand why Palm selected this way... 
> > (Performing operation on the FAT directory can't be a big deal.)
> 
> you are using VFSFileRename() right?
> 
>   http://www.palmos.com/dev/support/docs/palmos/VFSMgr.html#997456
> 
> i would have expected; that this API call would talk to the VFS
> driver and then it would simply update the FAT on the sd card. if
> it doesn't - then someones either been lazy or its really badly
> implemented.

it seems someone was really lazy:

---
Below is an example of how to use VFSFileRename. Note that the 
renamed file remains in the /PALM/Programs directory; 
VFSFileRename can't be used to move files from one directory 
to another.

// volRefNum must have been previously defined; most likely, 
// it was returned by VFSVolumeEnumerate 
  
err = VFSFileRename(volRefNum, "/PALM/Programs/foo.prc", "bar.prc"); 
if (err != errNone) 
{ 
      // handle error... 
} 

---

they could have at least adhered to the standard fileio rename()
function. this means if your doing a move; your actually doing
it by creating a new copy, filling its contents and then deleting
the old copy. no fun. thats gonna take time.

-- 
Aaron Ardiri
[EMAIL PROTECTED]
http://www.mobilewizardry.com/

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to