ocrd workspace validate: strange behaviour with symbolic links
See original GitHub issueIf you have an workspace, which has symbolic links in Image Source Folder (OCR-D-IMG), then it looks like that the command
ocrd workspace validate
creates an copy for this image additional to the symbolic link.
This is only the case, if the symbolic link has an absolute path (not a relative one).
Before validate:
After validate:
Example workspace: reproduceStrangeValidate.zip
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Behavior Change in Oracle 18c/19c: No symbolic links for ...
sql AS SYSDBA after upgrade. Recreate any directory objects listed, using path names that contain no symbolic links.
Read more >does not work at all for paths containing symbolic links on ...
General Description. The first time I observed a strange behaviour was by using terraform. terrform switched to the use of filepath.EvalSymlinks ...
Read more >Path2College 529 Plan
The Plan Web site contains links to other Web sites. ... for suspicious and unusual behavior to help verify that they are authentic...
Read more >Acura.com: Premium Sedans and SUVs
Discover Acura's exceptional line of cars and SUVs built for exhilarating performance and unsurpassed comfort. Enjoy top safety ratings across the entire ...
Read more >Enabling Symlinks on Windows - Perforce
For command line clients, you need to start your command console with "Run as Administrator". This is normal behavior for Windows - see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the problem is in workspace.py on line 146
url_path = Path(f.url).resolve()
If the file url is with symbolic links, resolve will return the real path and this is usually not in the workspace directory.
any chance to replace resolve with absolute?
url_path = Path(f.url).absolute()
@kba: Just tested out - works fine - many thanks 😃