public bool Mkdirs () { try { if (Directory.Exists (path)) return false; Directory.CreateDirectory (this.path); return true; } catch { return false; } }
public BlobStore(string path) { this.path = path; FilePath directory = new FilePath(path); directory.Mkdirs(); if (!directory.IsDirectory()) { throw new InvalidOperationException(string.Format("Unable to create directory for: {0}", directory)); } }