Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to move a file

You can move a single file to a different directory without renaming it, using RFs::Rename().

// Move file.txt from dir1 to dir2
_LIT(KFileSource,"\\dir1\\file.txt");
_LIT(KFileTarget,"\\dir2\\file.txt");
User::LeaveIfError(fsSession.Rename(KFileTarget,KFileSource));


Notes