public static string GetParentPath( string text) { return(string.IsNullOrEmpty(text) ? text : ZlpPathHelper.GetFullPath(ZlpPathHelper.Combine(text, @".."))); }
public static void MoveDirectoryToRecycleBin( string directoryPath) { using (var fo = new FileOperation(new FileOperationProgressSink())) { fo.SetOperationFlags(FileOperationDeleteFlags); fo.DeleteItem(ZlpPathHelper.GetFullPath(directoryPath)); fo.PerformOperations(); } }
public ZlpDirectoryInfo GetFullPath() { return(new ZlpDirectoryInfo(ZlpPathHelper.GetFullPath(FullName))); }
public ZlpFileInfo GetFullPath() { return(new ZlpFileInfo(ZlpPathHelper.GetFullPath(FullName))); }