HyperScript 1.7.31
More to do with files: what is in a folder, a file's lines, size and date, and folders of your own.
Added
- What is in a folder.
files in <folder>andfolders in <folder>give the names in it as a list, andall files in <folder>gives every file in it and in the folders inside it, each as its path:logs/monday.txt. - A file line by line.
lines of file at <path>is the file as a list of its lines, to loop over or to count. - About a file.
size of file at <path>in bytes, andlast modified of file at <path>as a date. - Copying and moving.
copy file at <path> to <path>andmove file at <path> to <path>, which is also how a file is renamed. The folders the new place needs are made. - Folders.
create folder <path>,folder at <path> exists, anddelete folder at <path>. A folder with something in it is only removed withwith its filesafter it. - The limits are the ones files always had: only inside
plugins/HyperScript/, never HyperScript's own files and folders, and nothing at all withfiles.enabled: false. Looking intoplugins/HyperScriptitself is allowed and leaves HyperScript's own out of the answer.