I have a really basic method written for handling the renaming of files using the custom FileSystemContentProvider
The file rename works successfully, and everything refreshes properly and looks good, but when the rename completes, and before the explorer repopulates, I get the Javascript alert saying "A file by this name already exists!"
What's causing this?
01.
public
override
string
MoveFile(
string
path,
string
newPath)
02.
{
03.
IC_Library.FileInfo info =
new
FileInfo(DataServer.ConnectionString);
04.
info.Name = VirtualPathUtility.GetFileName(newPath);
05.
info.Path = VirtualPathUtility.GetDirectory(newPath);
06.
info.ClientId = ClientId;
07.
info.PortalId = PortalId;
08.
09.
info.MoveFile(path, info);
10.
11.
return
base
.MoveFile(path, newPath);
12.
}
The file rename works successfully, and everything refreshes properly and looks good, but when the rename completes, and before the explorer repopulates, I get the Javascript alert saying "A file by this name already exists!"
What's causing this?