libraries/filesystem.nv
rules
get file content of File
ruby
f 'result', [File.read(file)]
write file Path with content Content
ruby
File.write path, content
copy files Files to Path
ruby
FileUtils.cp_r files, path
get files in Folder folder
ruby
Dir["#{folder}/*"].each do |file|
f 'got files', [file]
end
ensure Directory directory exists
ruby
Dir.mkdir directory unless Dir.exist? directory
get base name of Path
ruby
f 'result', [File.basename(path, '.html')]