internal virtual FileRecoveryStatus GetChanceOfRecovery(FileSystemNode node) { return FileRecoveryStatus.Unknown; }
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; }
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); } }
internal virtual FileRecoveryStatus GetChanceOfRecovery(FileSystemNode node) { return(FileRecoveryStatus.Unknown); }