The File System Generator is a Python script that generates a customizable file system structure based on a JSON configuration file. It creates folders, files, sets access permissions, timestamps, and file sizes.
- Generates a file system structure based on a JSON configuration file.
- Supports customizing folder and file attributes, permissions, timestamps, and sizes.
- Easy to use and highly customizable.
- Python 3.x
- Pip (Python package manager)
Open the file_system_structure.json file. Modify the file structure according to your needs. Run the script:
python main.py
Select the role to generate the file system structure. The generated file system structure will be saved in the output/role directory.
The file system structure is defined in the file_system_structure.json file. Modify this file to customize the generated structure.
Example configuration:
{
"Role1": {
"Folder1": {
"type": "folder",
"permissions": "755",
"timestamps": {
"access_time": 1632345600,
"modification_time": 1632345600,
"creation_time": 1632345600
},
"contents": {
"File1": {
"type": "file",
"permissions": "644",
"timestamps": {
"access_time": 1632345600,
"modification_time": 1632345600,
"creation_time": 1632345600
},
"size": 1000
}
}
}
}
}
For more details on the configuration options, please refer to the Documentation.
Contributions are welcome! Please read our Contributing Guidelines for more information.
This project is licensed under the MIT License. See the LICENSE file for details.