public BinaryDataStore(DirectoryInfo root, string name) : base(root, name) { Document = IOUtility.EnsureFile(root.FullName + "/" + name + ((name.IndexOf('.') != -1) ? String.Empty : ".bin")); }
public BinaryDataStore(string root, string name) : this(IOUtility.EnsureDirectory(root), name) { }
private static FileInfo GetFileInfo(string path) { path = path ?? String.Empty; return(new FileInfo(IOUtility.GetSafeFilePath(path, true))); }
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) { }