public JsonDataBase(string path, bool GZip, bool Encryption, SecureString Password = null) { this.GZip = GZip; this.Encryption = Encryption; this.InitializePassword(Password); var info = Directories.Create(path); Path = info.FullName; this.Load(); }
public static string CreateSimple(string path) { DirectoryInfo di = Directories.Create(path); if (di == null) { return(null); } else { return(di.FullName); } }
} //KeyToDataContent public JsonStorage(string directory, string name, bool GZip, bool Encryption, SecureString Password = null) { if (Files.HasExtension(name)) { name = name + extension; } Path = Directories.Create(directory).FullName; this.Key = name; this.GZip = GZip; this.Encryption = Encryption; this.InitializePassword(Password); this.Load(); }