File is read only Version 7 (Python)
Action group: FIle system
Description
This action is used to check if the file has a read only sign.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
File | Path to the file to which the action will be applied. | Robin.FilePath | Yes | |
Results | ||||
Result | A Boolean variable whose value is True if the file has the Read-Only attribute set, and False if this attribute is not set. | Robin.Boolean | true |
Special conditions of use
None.
Example of use
Task
Check the "Read only" sign for the "Log" file, the path to which is written in the "Path to file" variable.
Solution
Use the "File is read only" action.
Implementation
- Move the "File is read only" action to the workspace.
- Set the "File is read only" action parameter.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
The file does not have a "Read only" sign.
Обзор
Инструменты контента