Skip to content

W0nIE/FileSysGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

File System Generator

License

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.

Table of Contents

Features

  • 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.

Prerequisites

  • Python 3.x
  • Pip (Python package manager)

Usage

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.

Configuration

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.

Contributing

Contributions are welcome! Please read our Contributing Guidelines for more information.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages