Exemple #1
0
 public BinaryDataStore(DirectoryInfo root, string name)
     : base(root, name)
 {
     Document = IOUtility.EnsureFile(root.FullName + "/" + name + ((name.IndexOf('.') != -1) ? String.Empty : ".bin"));
 }
Exemple #2
0
 public BinaryDataStore(string root, string name)
     : this(IOUtility.EnsureDirectory(root), name)
 {
 }
Exemple #3
0
        private static FileInfo GetFileInfo(string path)
        {
            path = path ?? String.Empty;

            return(new FileInfo(IOUtility.GetSafeFilePath(path, true)));
        }
Exemple #4
0
 public virtual bool Equals(string other)
 {
     return(Insensitive.Equals(
                FullName,
                other != null ? IOUtility.GetSafeDirectoryPath(other).TrimEnd(IOUtility.PathSeparator) : String.Empty));
 }
 public BinaryDirectoryDataStore(string root, string name, string fileExt)
     : this(IOUtility.EnsureDirectory(root + "/" + name), name, fileExt)
 {
 }
 public DataStore(string root, string name = null)
     : this(IOUtility.EnsureDirectory(root), name)
 {
 }