https://github.com/topekodev/rust-json-file-categorize
Tool for categorizing files that have annotations in json files
https://github.com/topekodev/rust-json-file-categorize
Last synced: 11 months ago
JSON representation
Tool for categorizing files that have annotations in json files
- Host: GitHub
- URL: https://github.com/topekodev/rust-json-file-categorize
- Owner: topekodev
- License: mit
- Created: 2024-08-04T13:54:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T15:41:16.000Z (over 1 year ago)
- Last Synced: 2025-01-14T07:11:22.505Z (about 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-json-file-categorize
Tool for categorizing files that have annotations in json files
## Examples
Tree view:
```bash
.
├── Cargo.lock
├── Cargo.toml
├── config.json # Config file
├── files
│ └── ... # Files
├── labels
│ └── ... # Json files
├── src
│ ├── config.rs
│ └── main.rs
```
Configuration file:
```json
{
"file_dir": "./files",
"label_dir": "./labels",
"file_out_dir": "./files-out",
"label_out_dir": "./labels-out",
"file_link_property": "filename",
"file_link_property_get_filename": false,
"method": "symlink",
"categories": [
{
"name": "name",
"filters": [
{
"property": "key",
"values": [
"value1",
"value2"
],
},
]
},
]
}
```
Run with:
```bash
cargo run config.json
```