Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Last active January 3, 2016 23:39
Show Gist options
  • Select an option

  • Save v2e4lisp/8536740 to your computer and use it in GitHub Desktop.

Select an option

Save v2e4lisp/8536740 to your computer and use it in GitHub Desktop.

Directory Builder

syntax

DirectoryBuider.new(root) do
  dir("sample-dir") {
    file("file-name") {
      "file-content"
    }
    
    dir("sub-dir")
  }
end

todo

file/dir operations: chmod, link, owner ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment