Hello, with this (http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx) custom provider I can't delete and rename files. I fixed it:
It's correct?
public
override
string
GetPath(
string
path)
{
// First add the '~/' signs in order to use the VirtualPathUtility.GetDirectory() method ;
/*string PathWithTilde = "~/" + path;
string virtualPath = VirtualPathUtility.GetDirectory(PathWithTilde);
virtualPath = virtualPath.Remove(0, 2);// remove the '~' signs
return virtualPath;*/
string
virtualPath =
""
;
if
(Path.GetFileName(path).Length > 0)
virtualPath = path.Replace(Path.GetFileName(path),
""
);
return
virtualPath;
}
It's correct?