I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Capability:File system access

From Rosetta Code
Capability:File system access
Capabilities characterize abstract requirements of tasks and abilities of languages and libraries.
Browse this capability's properties.


File system access covers all operations which go beyond manipulating single files. This especially includes things like reading directories and reading or writing file attributes.

Change Directory[edit]

Changes the current folder to another folder. The file path must already exist or the machine will return an error message. This is the basic file system command in both Windows and Unix, and is needed to properly run programs. If a program you want to run is in the current directory, you can omit the file path and just list the program by name. The command "cd .." is shorthand for the folder that contains the one you are currently in. It's the equivalent of the "Up One Level" button in a typical Windows GUI.

MKDIR[edit]

This stands for "Make Directory." It creates a new folder of a specified name.

RMDIR[edit]

This deletes the named folder, but only if that folder is empty.