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

            return(new FileInfo(IOUtility.GetSafeFilePath(path, true)));
        }
Esempio n. 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)
 {
 }
Esempio n. 6
0
 public DataStore(string root, string name = null)
     : this(IOUtility.EnsureDirectory(root), name)
 {
 }