Crates.io | projson |
lib.rs | projson |
version | 0.1.0 |
source | src |
created_at | 2024-07-28 15:34:31.436641 |
updated_at | 2024-07-28 15:34:31.436641 |
description | The program uses ProjFS to map json to file tree. |
homepage | |
repository | https://github.com/fxtack/projson |
max_upload_size | |
id | 1318039 |
size | 160,997 |
This project uses ProjFS to map JSON to file tree.
Before running, please ensure that the optional Windows feature: ProjFS is enabled. To enable the ProjFS feature, you can use the following PowerShell command.
Enable-WindowsOptionalFeature -Online -FeatureName Client-ProjFS -NoRestart
After enabling the ProjFS feature, use projson --help
to view the usage information.
Usage: projson.exe --prj-path <Virtual root directory path> <--json-file <Json file path>|--json-text <Json text>>
Options:
-f, --json-file <Json file path> Specifies the JSON file to read
-t, --json-text <Json text> Specifies the JSON text to read
-p, --prj-path <Virtual root directory path> Specifies the virtualization root directory path
-h, --help Print help
-V, --version Print version
When mapping JSON to files or directories, the JSON key will be the file or directory name, and the type of the value will determine whether the key-value pair is mapped to a file or a directory, according to the following rules:
Map JSON as a file tree from file.
projson.exe --json-file src.json --prj-path D:\dst