Feature add import 754 (#762)

* Initial alpha version of import command

* Refactored

* Improved help, added --clear-metadata

* Added --clear-metadata, --exiftool to import

* Added --keyword, --title, --description

* Added --location

* Added test for --location

* Changed --auto-folder to --split-folder, added docs

* Added --walk, updated docs

* Added --check-templates

* Updated help text for import
This commit is contained in:
Rhet Turnbull
2022-08-21 09:07:22 -07:00
committed by GitHub
parent 46738d05b2
commit c88fc75013
11 changed files with 1846 additions and 23 deletions

View File

@@ -1228,6 +1228,9 @@ def test_filepath():
rendered, _ = template.render("{filepath.parent}", options)
assert rendered[0] == "/foo"
rendered, _ = template.render("{filepath.parent.name}", options)
assert rendered[0] == "foo"
rendered, _ = template.render("{filepath.stem}", options)
assert rendered[0] == "bar"