aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IO/FileSystemMetadata.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-03 23:38:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-03 23:38:46 -0400
commit8ad702060ea31a3862598056509a2597f6a2b639 (patch)
tree0ff47fe50567456746ebe028599f6dd54b52f6ab /MediaBrowser.Common/IO/FileSystemMetadata.cs
parent64c1628160d31482d6b74fd82a6dfd0c9cf5de96 (diff)
begin file system rework
Diffstat (limited to 'MediaBrowser.Common/IO/FileSystemMetadata.cs')
-rw-r--r--MediaBrowser.Common/IO/FileSystemMetadata.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.Common/IO/FileSystemMetadata.cs b/MediaBrowser.Common/IO/FileSystemMetadata.cs
new file mode 100644
index 000000000..ba8a1b8b8
--- /dev/null
+++ b/MediaBrowser.Common/IO/FileSystemMetadata.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MediaBrowser.Common.IO
+{
+ public class FileSystemMetadata
+ {
+ public FileAttributes Attributes { get; set; }
+
+ public bool Exists { get; set; }
+ public string FullName { get; set; }
+ public string Name { get; set; }
+ public string Extension { get; set; }
+ public long Length { get; set; }
+ public string DirectoryName { get; set; }
+
+ public DateTime LastWriteTimeUtc { get; set; }
+ public DateTime CreationTimeUtc { get; set; }
+
+ public bool IsDirectory
+ {
+ get
+ {
+ return (Attributes & FileAttributes.Directory) == FileAttributes.Directory;
+ }
+ }
+ }
+}