public static bool SafeExists(this ZlpFileOrDirectoryInfo i) { if (i == null || i.IsEmpty) { return(false); } else if (i.IsDirectory) { return(ZlpSafeFileOperations.SafeDirectoryExists(i.Directory)); } else if (i.IsFile) { return(ZlpSafeFileOperations.SafeFileExists(i.File)); } else { return(false); } }
public static bool SafeExists(this ZlpFileInfo filePath) { return(ZlpSafeFileOperations.SafeFileExists(filePath)); }