Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Operations

Guillem Jara edited this page Nov 14, 2021 · 4 revisions

An operation is some change that you can make to a file, either creating, accessing or modifying. Operations aren't very far away from functions in most programming languages, they have an identifier (the name), and between brackets the arguments, separated by ,. This is an example of an operation: copy(@path, /x).

List of all operations:

  • print: prints something to the terminal (not to the printer)
  • create: creates a file, with its content as second argument
  • mkdir: creates a folder/directory
  • delete: deletes file/directory
  • move: moves a file or a folder/directory
  • copy: copies a file or a folder/directory
  • gzc: compress file using GZIP. The first argument is the file to compress, the second is the file to save the compressed file
  • gzd: decompress file using GZIP. The first argument is the file to compress, the second is where to save the compressed file
  • shell: gives a command to the Bourne Shell (sh) in Unix systems (like Linux or macOS), or a command to PowerShell (powershell) in Windows systems. Exists for doing things Voila functions can't, for example, send a DBUS message or executing an app.
  • child: executes the executable given in the first argument with the arguments provided in the following ones. As it is executed as a child, it doesn't get waited to finish before executing the next cycle, like shell does.