aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IO/FileSystemMetadata.cs
diff options
context:
space:
mode:
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;
+ }
+ }
+ }
+}