Commit ff77f7d 1 parent 04d38aa commit ff77f7d Copy full SHA for ff77f7d
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class FileOperation :
11
11
"""
12
- # Define a type hint for the different types of file operations that can be performed.
13
- # This Union type allows for specifying the operation (as a string literal indicating the type of action),
14
- # and the required arguments for each operation type:
15
- # - 'makedirs': Create a new directory; requires the path of the directory.
16
- # - 'write_file': Write content to a file; requires the file path and the content to write.
17
- # - 'chmod': Change the file mode; requires the file path and the new mode (as an integer).
12
+ Define a type hint for the different types of file operations that can be performed.
13
+ This Union type allows for specifying the operation (as a string literal indicating the type of action),
14
+ and the required arguments for each operation type:
15
+ - 'makedirs': Create a new directory; requires the path of the directory.
16
+ - 'write_file': Write content to a file; requires the file path and the content to write.
17
+ - 'chmod': Change the file mode; requires the file path and the new mode (as an integer).
18
18
19
19
"""
20
20
You can’t perform that action at this time.
0 commit comments