denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

ddrpubcopy not syncing files to backblaze #198

Closed gjost closed 3 years ago

gjost commented 3 years ago
(cmdln) ddr@maunakea:/home/densho$ ddrpubcopy mezzanine /media/qnfs/kinkura/gold/ddr-densho-377/files/ddr-densho-377-1 /media/qnfs/kinkura/transfer/ --b2sync
/opt/ddr-cmdln/venv/cmdln/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.3) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
2021-02-09T14:15:40.034256 - Finding files
2021-02-09T14:15:40.144634 - found 8
2021-02-09T14:15:40.147067 - Filtering: mezzanine
2021-02-09T14:15:40.149010 - 8 files in filesystem
2021-02-09T14:15:40.754385 - 1 publishable objects
2021-02-09T14:15:40.756793 - 0 files
2021-02-09T14:15:40.758778 - DONE!
0:00:00.725584 elapsed
gjost commented 3 years ago

Problem is the DDR.cli.ddrpubcopy.filter_files function was using relative paths when checking to see if files were present in the filesystem. Switching to absolute paths fixed it.

Fixed in ddr-cmdln develop branch commit b87b226 for the upcoming package.