An abstract node of the filesystem tree.
Inheritance: IFileSystemNode
コード例 #1
0
		internal virtual FileRecoveryStatus GetChanceOfRecovery(FileSystemNode node) {
			return FileRecoveryStatus.Unknown;
		}
コード例 #2
0
 public ExplorerHistoryRecord(string desc, DateTime lastAccessed, DateTime lastModified, Folder folder, string filename)
 {
     Description = desc;
     LastAccessedUTC = lastAccessed;
     LastModifiedUTC = lastModified;
     if (LastAccessedUTC.Kind != DateTimeKind.Utc) Debugger.Break();
     if (LastModifiedUTC.Kind != DateTimeKind.Utc) Debugger.Break();
     m_Folder = folder;
     m_Filename = filename;
 }
コード例 #3
0
 public ExplorerHistoryRecord(string desc, DateTime lastAccessed, DateTime lastModified, FileSystem fileSystem)
 {
     Description = desc;
     LastAccessedUTC = lastAccessed;
     LastModifiedUTC = lastModified;
     if (LastAccessedUTC.Kind != DateTimeKind.Utc) Debugger.Break();
     if (LastModifiedUTC.Kind != DateTimeKind.Utc) Debugger.Break();
     // Parse the description to get m_Filename
     Regex r = new Regex("/[c-zC-Z]:(?<filename>.*)$", RegexOptions.Compiled);
     Match m = r.Match(Description);
     if (!m.Success) {
         m_Folder = null;
     } else {
         m_Folder = fileSystem.GetRoot();
         m_Filename = HttpUtility.UrlDecode(m.Groups["filename"].Value);
     }
 }
コード例 #4
0
 internal virtual FileRecoveryStatus GetChanceOfRecovery(FileSystemNode node)
 {
     return(FileRecoveryStatus.Unknown);
 }