Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This section contains routines that enable users to handle directories and files.

Routines Summary

...

createDirectory — Returns "true" if the directory was created successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

...

createFile — Creates an empty file. It also returns "true" if the file was created successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

...

deleteFile — Deletes a file. It also returns "true" if the file was deleted successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

...

directoryExists — Returns "true" if the directory exists and "false" otherwise.

...

fileContains — Returns "true" if the file contains any string that matches the specified regex. If the regex contains a backslash replace it with two backslashes otherwise you will get a syntax error.

...

fileCopy — Copy a file from one location to another. Returns "true" if the file was copied successfully and "false" otherwise. If "false" is returned check the log for a detailed reason on why it failed.

...

fileExists — Returns 'true' if the file exists and 'false' otherwise.

...

fileMove — Moves a file from one location to another.

...

fileSHA256Checksum — Returns the SHA256 checksum of the file.

...

fileSize — Returns the size for a given file.

...

findDirectories — Searches for directories that match the given regex in the specified folder. The routine only searches for directories, not files.

...

findFiles — Searches for files that match the given regex in the specified folder. The routine only searches for files, not directories.

...

printInFile — Prints in the specified file the provided value. It appends the value to the file. For best results, use absolute paths, since relative paths are resolved starting with the current working directory.

...

readFromCSVFile — Reads the values from the CSV file, returning them to an array, of N rows * M columns values.

...

readFromTextFile — Read the text of the file.

...

renameFile — Renames a file.

...

Child pages (Children Display)
excerptTypesimple