コード例 #1
0
 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);
 }