pkgx icon indicating copy to clipboard operation
pkgx copied to clipboard

Fixed Windows path issue

Open calvinyee opened this issue 2 years ago • 1 comments

Fixed Path.ts to get pass first Tea Path error (1- changing slashes for windows and 2- using another deno function that has to do with symlink)

calvinyee avatar Dec 08 '22 22:12 calvinyee

  • Added slash dependency
  • Changed the constructor to support Windows paths

what-the-diff[bot] avatar Dec 08 '22 22:12 what-the-diff[bot]

For this I would like the following (unless impossible or stupid, LMK)

  • Internally use forward slash as path separator
  • convert for .pretttyString()

I believe that all APIs will accept forward slashes, even Win32. But could be wrong.

mxcl avatar Dec 11 '22 14:12 mxcl

For this I would like the following (unless impossible or stupid, LMK)

  • Internally use forward slash as path separator
  • convert for .pretttyString()

I believe that all APIs will accept forward slashes, even Win32. But could be wrong.

We use forward slash internally as path separator. Slash() function does the conversion from backslash to forward slash if necessary.

calvinyee avatar Dec 12 '22 05:12 calvinyee