- Perl ›
- File operations
File/directory operation
We have summarized how to create/delete/copy files/directories.
Basic knowledge of file names
Handling of file names
- Extract the directory name and base name from the file name
- Extract the extension from the file name
- Convert the file name to the file name in the OS of the execution environment
File operation
Directory operation
- Create a directory
- Delete the directory
- Rename the directory
- Change the current directory
- Get the current directory name
- Get the list of files in the current directory
Recursive directory manipulation
- Create a multi-level directory
- Delete directories with hierarchy at once
- Recursively process all files
Permissions
Explains file permissions on Unix/Linux.