tweego icon indicating copy to clipboard operation
tweego copied to clipboard

Long paths within file tree break compile

Open Joeyrsp opened this issue 2 years ago • 0 comments

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

  1. Take any working twee project folder.
  2. Create a folder or set of folders with sufficiently long names (e.g. ./abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz/abcdefghijklkmnopqrstuvwxyz)
  3. Run tweego (e.g. tweego -o "../index.html" .)
  4. 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

Joeyrsp avatar Feb 22 '22 12:02 Joeyrsp