{"id":19493360,"url":"https://github.com/negrel/photosort","last_synced_at":"2026-06-07T20:32:07.529Z","repository":{"id":60290598,"uuid":"525087005","full_name":"negrel/photosort","owner":"negrel","description":":camera: A pictures/files organizer.","archived":false,"fork":false,"pushed_at":"2022-11-13T12:27:19.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T20:20:55.637Z","etag":null,"topics":["exif","photos","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/negrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-15T17:59:04.000Z","updated_at":"2022-11-01T18:07:57.000Z","dependencies_parsed_at":"2023-01-21T14:46:23.653Z","dependency_job_id":null,"html_url":"https://github.com/negrel/photosort","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/negrel/photosort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negrel%2Fphotosort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negrel%2Fphotosort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negrel%2Fphotosort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negrel%2Fphotosort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/negrel","download_url":"https://codeload.github.com/negrel/photosort/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negrel%2Fphotosort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285129556,"owners_count":27119601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-18T02:00:05.759Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exif","photos","rust"],"created_at":"2024-11-10T21:25:28.937Z","updated_at":"2025-11-18T20:03:25.788Z","avatar_url":"https://github.com/negrel.png","language":"Rust","funding_links":["https://www.buymeacoffee.com/negrel"],"categories":[],"sub_categories":[],"readme":"# :camera: `photosort` - A pictures/files organizer.\n\n![push workflow](https://github.com/negrel/photosort/actions/workflows/push.yaml/badge.svg)\n\nA simple CLI/daemon program to sorts your pictures/files.\n\n## Getting started\n\nLet's start by installing `photosort`.\n\n### Installation\n\nYou can install `photosort` using one of the following methods:\n\n```shell\n# Using cargo\ncargo install photosort\n\n# Using docker\ndocker pull docker.io/negrel/photosort\n# or podman\npodman pull docker.io/negrel/photosort\n```\n\n### Usage\n\n```shell\n# Print help informations\nphotosort --help\n\n# Using docker\ndocker run --rm -it negrel/photosort --help\n```\n\nSort given `/path/to/src1` and `/path/to/src2` directories/files recursively using\n`/path/to/dst/:file.name:` template. Files and directories are replicated using\nhardlink and fallback to softlink if the primer fails.\n\n```shell\nphotosort sort -r hardlink -r softlink \"/path/to/dst/:file.name:\" /path/to/src1 /path/to/src2 ...\n```\n\nWatch directories and sort them as new files are added:\n```shell\nphotosort watch --daemon -r hardlink -r copy \"/path/to/dst/:file.name:\" /path/to/src1 /path/to/src2 ...\n```\n\n## Template variables\n\nThe following template variables are available for now. If you're missing other variables,\ndon't hesitate to make a PR !\n\n| Variable | Description |\n| :------- | :---------- |\n| `file.path` | Absolute path to file. |\n| `file.name` | File name. |\n| `file.stem` | Extracts the stem (non-extension) portion of the filename. |\n| `file.extension` | Extracts the extension part of the filename. |\n| `file.name.date` | Parse RFC3339 date from filename (with optional separator: `-` `_`) |\n| `file.name.date.year` | Year extracted from filename. |\n| `file.name.date.month` | Month extracted from filename. |\n| `file.name.date.day` | Day extracted from filename. |\n| `file.md.creation_date` | File creation date in RFC3339 format. |\n| `file.md.creation_date.year` | Year extracted from file creation date. |\n| `file.md.creation_date.month` | Month extracted from file creation date. |\n| `file.md.creation_date.day` | Day extracted from file creation date. |\n| `exif.date` | Exif date in RFC3339 format. |\n| `exif.date.year` | Year extracted from DateTime exif field. |\n| `exif.date.month` | Month extracted from DateTime exif field. |\n| `exif.date.day` | Day extracted from DateTime exif field. |\n\n### Composed template variables\n\nThe following composed template variables are available for now:\n\n| Variable | Source variables | Description |\n| :------- | :--------------- | :---------- |\n| `date` | `exif.date` -\u003e `file.name.date` -\u003e `file.md.creation_date` | Date in RFC3339 format. |\n| `date.year` | `exif.date.year` -\u003e `file.name.date.year` -\u003e `file.md.creation_date.year` | The full proleptic Gregorian year, zero-padded to 4 digits. |\n| `date.month` | `exif.date.month` -\u003e `file.name.date.month` -\u003e `file.md.creation_date.month` | Month number (01–12), zero-padded to 2 digits. |\n| `date.day` | `exif.date.day` -\u003e `file.name.date.day` -\u003e `file.md.creation_date.day` | Day number (01–31), zero-padded to 2 digits. |\n\n## Contributing\n\nIf you want to contribute to `photosort` to add a feature or improve the code contact\nme at [negrel.dev@protonmail.com](mailto:negrel.dev@protonmail.com), open an\n[issue](https://github.com/negrel/photosort/issues) or make a\n[pull request](https://github.com/negrel/photosort/pulls).\n\n## :stars: Show your support\n\nPlease give a :star: if this project helped you!\n\n[![buy me a coffee](.github/images/bmc-button.png)](https://www.buymeacoffee.com/negrel)\n\n## :scroll: License\n\nMIT © [Alexandre Negrel](https://www.negrel.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegrel%2Fphotosort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnegrel%2Fphotosort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegrel%2Fphotosort/lists"}