public int Rename(object FileNode, object FileDesc0, string FileName, string NewFileName, bool ReplaceIfExists) { try { return(HandleResult(Storage.Rename(FileName, NewFileName, ReplaceIfExists)).GetNtStatus()); } catch (Win32Exception ex) { throw WindowsExceptionGenerator.GetIOException(ex); } catch (NTException ex) { throw WindowsExceptionGenerator.GetIOException(ex); } }