Code: Select all
extern "C" __declspec(dllexport) int __stdcall FsRenMovFile(char* OldName,char* NewName,bool Move,bool OverWrite,RemoteInfoStruct* ri)
{
if(!strcmp(OldName,NewName)) return FS_FILE_OK;
if(!OverWrite && ItemExists(NewName))
return FS_FILE_EXISTS;
CopyItem(OldName,NewName,Move,OverWrite);
return FS_FILE_OK;
}
When I copy file from one folder to another (in WFX file system) and returns FS_FILE_EXISTS (if file exists) - all is ok - I get owerwrite dialog.ItemExists - checks for existence
CopyItem - copy/move item
When I copy file to the same folder (by Shift+F5) and returns FS_FILE_EXISTS (if file exists) - all is ok - I get owerwrite dialog.
But when I rename file (by Shift+F6) and returns FS_FILE_EXISTS (if file exists) I have no owerwrite dialog. But I have this message:
This is right (I am very doubt)?---------------------------
Total Commander
---------------------------
Error: Cannot write \\\VFS\222.222!
Please remove the write protection!
---------------------------
ОК
---------------------------