create file, create folder, create link
- command
- create file
- create folder
- create link
- The create file and create linkcommands can be used to create an empty file or a link to a file (files can also be created by simply writing into a new file).
create a new file "juicy" in folder "stories"
create link "tasty" to file "juicy"
- The create folder command (or create directory -- the terms folder and directory are interchangeable) allows scripts to directly create new folders. The parent folder must have proper permissions to allow creating a new folder within it.
create a new folder "/tmp/myWorkArea"
create folder "/tmp/myWorkArea/subdir"
- The create file and create folder commands will create the full path to the file or folder being created; the immediate parent folder does not need to exist already.
- the create file and create folder commands can accept some initial properties for the file or folder, including setting the owner, group, permissions, modification date, creation date, type code, creator code, and locked properties.
create file "/tmp/xyz" \
with (groupName:"admin", modificationDate:"5am tomorrow")
- Related: copy file, move file, rename file, delete file