- Install
- Basic operation
- Basics of programming for electronic work
- Basics of programming for Excel
- Machine learning with scikit-learn
- Visualizing data with matplotlib
- Web programming
- RPA programming
- Miscellaneous programming
- Reference
- "Basic" group
- ”Basic I/O" group
- ”PWM Output" group
- "Servo Motor" group
- ”Motor" group
- ”Display" group
- ”Sensor" group
- "Micro controller" group
- "Excel" group
- "scikit-learn" group
- "matplotlib" group
- "Web" group
- "File" group
- "File System" group
- Overview
- Usage of each block
- "File Read/Write" group
- "File System" group
- "Image" group
- "Turtle" group
- "Speech" group
Usage of each block
Change Current Folder
![]()
Changes the "current folder" which is the base for reading and writing files, to the specified folder.
Get Current Folder
![]()
Gets the full path of the current folder as a string.
Create Folder
![]()
Creates a new folder with the specified name.
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
Renames a file or folder.
It can also be used for moving (e.g., renaming "folder1/a.txt" to "folder2/b.txt").
Remove File
![]()
Removes the specified file.
Folders cannot be removed.
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
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
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
![]()
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
![]()
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
![]()
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
![]()
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
![]()
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
![]()
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?
![]()
Returns "true" if the specified file or folder exists, and "false" otherwise.
Check if it's a file
![]()
Returns whether the specified path is a file.
Check if it's a folder
![]()
Returns whether the specified path is a folder.
Get File Size
![]()
Gets the size of the file as a number in bytes.
Get Last Access Time
![]()
Gets the last access time of the file.
Get Last Modified Time
![]()
Gets the last modified time of the file.
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
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
![]()
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.