コード例 #1
0
 public static string GetParentPath(
     string text)
 {
     return(string.IsNullOrEmpty(text)
         ? text
         : ZlpPathHelper.GetFullPath(ZlpPathHelper.Combine(text, @"..")));
 }
コード例 #2
0
 public static void MoveDirectoryToRecycleBin(
     string directoryPath)
 {
     using (var fo = new FileOperation(new FileOperationProgressSink()))
     {
         fo.SetOperationFlags(FileOperationDeleteFlags);
         fo.DeleteItem(ZlpPathHelper.GetFullPath(directoryPath));
         fo.PerformOperations();
     }
 }
コード例 #3
0
 public ZlpDirectoryInfo GetFullPath()
 {
     return(new ZlpDirectoryInfo(ZlpPathHelper.GetFullPath(FullName)));
 }
コード例 #4
0
 public ZlpFileInfo GetFullPath()
 {
     return(new ZlpFileInfo(ZlpPathHelper.GetFullPath(FullName)));
 }