tweego
tweego copied to clipboard
Long paths within file tree break compile
Describe the bug Running tweego on a folder with deeply nested children or a very long name results in an error and fails the process. Presumably related to the old windows max path length restriction of ~255.
To Reproduce
- Take any working twee project folder.
- Create a folder or set of folders with sufficiently long names (e.g.
./abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz
) - Run tweego (e.g.
tweego -o "../index.html" .
) - Receive error:
warning: path .: CreateFile abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz\abcdefghijklkmnopqrstuvwxyz: The system cannot find the path specified.
Expected behavior There should be no errors and it should succeed.
Desktop (please complete the following information):
- Tweego Version: 2.1.1+81d1d71
- OS & Version: Windows 10