Register
Paled » Wiki

Paled Wiki

Featured Article: Tools and Wrappers

Tools

list - Lists files and directories

list(directory: path = ".", hidden: bool = true, detail: bool = false)

  • detail listing shows all information about files in a list

list.files(directory: path = ".", hidden: bool = true, detail: bool = false)

  • detail listing shows all information about files in a list

list.dirs(directory: path = ".", hidden: bool = true, detail: bool = false)

  • detail listing shows all information about files in a list

list.info(entry: path = ".")

list.tree(directory: path = ".", hidden: bool = false)

print(str: string = "\n")

print.format(format: string = "")

print.file(file: path, line_numbers: bool = false)

print.stdin()

  • Echoes back what's put in stdin

make.dir(newpath: path)

make.file(newpath: path)

  • Creates an empty file at newpath

make.link(newpath: path, targetpath: path, symbolic: bool = true)

  • Creates synbolic link newpath that points to targetpath

move - Moves files and directories

move(entry: path, dest: path)

rename - Renames files and directories

rename(entry: path, newname: string, overwrite: bool = false)

  • newname is the new name of the entry
  • overwrite will overwrite an existing entry with the renamed entry

rename.move(entry: path, newname: string, newpath: path, overwrite: bool = false)

  • newname ...