Skip to content

Commit

Permalink
Add a code comment about the need to use Windows long path prefix wit…
Browse files Browse the repository at this point in the history
…h fpcalc
  • Loading branch information
phw committed Sep 18, 2023
1 parent e2f1940 commit aea430f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions picard/acoustid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def _run_next_task(self):
process.finished.connect(partial(self._on_fpcalc_finished, task))
process.error.connect(partial(self._on_fpcalc_error, task))
file_path = task.file.filename
# On Windows fpcalc.exe does not handle long paths, even if system wide
# long path support is enabled. Ensure the path is properly prefixed.
if IS_WIN:
file_path = win_prefix_longpath(file_path)
process.start(self._fpcalc, ["-json", "-length", "120", file_path])
Expand Down

0 comments on commit aea430f

Please sign in to comment.