PolMine / cwbtools

Tools to create and manage CWB-indexed corpora
4 stars 2 forks source link

Working with filenames - use fs package #36

Closed ablaette closed 2 years ago

ablaette commented 3 years ago

This issue emerges from an issue with the "C:\Users..." directory of a Windows test machine that has tortured me. The problem with this kind of path is that "\U" followed by four hex numbers would also be a unicode character. So a path "C:\Users\App Data" can provoke errors easily. Happened to me, and it was hard to solve.

The solution might be to use to using the fs package consistently, because users cannot be assumed to be aware of the nightmares with the backlash...

ablaette commented 2 years ago

As of cwbtools v0.3.8, fs::path() replaces file.path() throughout.