public int Rename(string pOldPath, string pNewPath, bool pReplaceIfExists) { if (FileActions.Exists(pOldPath)) { FileActions.Move(pOldPath, pNewPath); } else if (DirectoryActions.Exists(pOldPath)) { DirectoryActions.Move(pOldPath, pNewPath); } else { throw new FileNotFoundException(); } return(FileSystemStatus.STATUS_SUCCESS); }