You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: os.PathError$AbsolutePathOutsideRoot$: The path created has enough ..s that it would start outside the root directory
at os.PathError$AbsolutePathOutsideRoot$.<clinit>(Path.scala:220)
at os.Path.$div(Path.scala:462)
at os.copy$.apply(FileOps.scala:179)
copying to a subpath works, copying to the root folder does not.
Haoyi: To incentivize contribution, I'm putting a 200USD bounty on resolving this ticket. This is payable via bank transfer, and at my discretion in case of ambiguity.
The text was updated successfully, but these errors were encountered:
Fix an error where `os.copy(createFolders = true, mergeFolders = true)`
a directory to root throw a `PathError.AbsolutePathOutsideRoot` due to
calling `/up` on root.
The same issue (calling `/up` on root) is seen in `os.move`,
`os.copy.matching` and `os.move.matching` so this fixes those as well.
In case of `os.move` and `os.move.matching` moving a directory to root
should throw an error anyway but at least now it throws the correct
underlying error instead of `AbsolutePathOutsideRoot`.
Fix#167
Pull request: #267
---------
Co-authored-by: Tobias Roeser <le.petit.fou@web.de>
https://scastie.scala-lang.org/5htwvdwbShivvYgwZZgqUg
copying to a subpath works, copying to the root folder does not.
Haoyi: To incentivize contribution, I'm putting a 200USD bounty on resolving this ticket. This is payable via bank transfer, and at my discretion in case of ambiguity.
The text was updated successfully, but these errors were encountered: