Sharpen.FilePath.Mkdirs C# (CSharp) Method

Mkdirs() public method

public Mkdirs ( ) : bool
return bool
		public bool Mkdirs ()
		{
			try {
				if (Directory.Exists (path))
					return false;
				Directory.CreateDirectory (this.path);
				return true;
			} catch {
				return false;
			}
		}

Usage Example

Esempio n. 1
0
 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));
     }
 }
All Usage Examples Of Sharpen.FilePath::Mkdirs