Usage of each block

日本語のページ

Change Current Folder

Change current folder

Changes the "current folder" which is the base for reading and writing files, to the specified folder.

Get Current Folder

Get current folder

Gets the full path of the current folder as a string.

Create Folder

Create folder

Creates a new folder with the specified name.

Get File List

Get file list

Gets a list of the names of files and folders contained in the specified folder.
If no folder is specified, it gets a list of the current folder.
Checking the "fullpath" checkbox will display the file/folder as its full path.
If the checkbox is unchecked, only the file/folder name will be returned.

Rename File

Rename file

Renames a file or folder.
It can also be used for moving (e.g., renaming "folder1/a.txt" to "folder2/b.txt").

Remove File

Remove file

Removes the specified file.
Folders cannot be removed.

Copy File

Copy file

Copies a file.
If "copy metadata" is checked, information such as the last access time and last modified time will also be copied.

Copy Folder

Copy folder

Recursively copies a folder.
If "Copy even if it already exists" is checked, it will not cause an error even if a folder with the same name exists at the destination, and the files will be merged.

Find Files

Find files

Gets a list (array) of files and folders that match the specified pattern.
You can use wildcards such as `*` (any string) and `?` (any single character).
If "Search subfolders" is checked, it will also search folders in lower hierarchies.
The name of the found file/folder will be preceded by the folder name specified in the "folder" parameter.
If you specify a full path in the "Folder" parameter, the found file/folder name will also be the full path.

Split Path

Split path to folder and filename

Splits a file path into two strings, the trailing file name (or folder name) and the rest of the path (the folder path), and returns them as a list.

Folder Name in Path

Get folder of path

This function splits a file path into the trailing filename (or folder name) and the rest of the path (the folder path), returning only the folder path.

Filename in the path

Get filename of path

This function splits a file path into the filename (or folder name) at the end and the rest of the path (the folder path), returning only the end portion.

Split Extension

Split filename to basename and extension

Splits a file name into two strings, the base name (the part before the extension) and the extension, and returns them as a list.
The file extension includes the leading ".".

Base name of filename

Get basename

This function splits the filename into two strings: the base name (the part before the extension) and the extension. It returns the base name portion.

File name extension

Get extension

This function splits the file name into two strings: the base name (the part before the extension) and the extension, and returns the extension portion.
The file extension includes the leading ".".

Does File Exist?

Does the file exists?

Returns "true" if the specified file or folder exists, and "false" otherwise.

Check if it's a file

Is path a file?

Returns whether the specified path is a file.

Check if it's a folder

Is path a folder?

Returns whether the specified path is a folder.

Get File Size

Get file size

Gets the size of the file as a number in bytes.

Get Last Access Time

Get last access time

Gets the last access time of the file.

Get Last Modified Time

Get last modied time

Gets the last modified time of the file.

Open File Dialog

Show open file dialog

Displays an "Open File" dialog box and gets the path of the file selected by the user.
If the "multiple selection" checkbox is checked, you can select multiple files, and the return value will be a list of paths.

  • Caption: The text displayed in the title bar of the dialog box.
  • Folder: The path of the folder to be displayed first.
  • Filter: A filter to limit the types of files displayed.
    Filters are separated by ";;".
    Example: Text files (*.txt);;All files (*.*)
  • Multiple Selection: If checked, multiple files can be selected.

When the cancel button is clicked, the return value will be null.

Save As Dialog

Show save file dialog

Displays a "Save As" dialog box and gets the path of the save file specified by the user.

  • Caption: The text displayed in the title bar of the dialog box.
  • Folder: The path of the folder to be displayed first.
  • Filter: A filter for selecting the type of file to save.
    Filters are separated by ";;".
    Example: Text files (*.txt);;All files (*.*)

When the cancel button is clicked, the return value will be null.

Select Folder Dialog

Show select folder dialog

Displays a dialog box for selecting a folder and gets the path of the folder selected by the user.

  • Caption: The text displayed in the title bar of the dialog box.
  • Folder: The path of the folder to be displayed first.

When the cancel button is clicked, the return value will be null.