Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,16 @@ mod tests {
"virtualSegments": ["b/__virtual__/foo-abcdef/1/c/foo.zip", "c/foo.zip"],
"zipPath": "bar"
}],
["/a/b/__virtual__/foo-abcdef/1/c/foo.zip/bar", {
"basePath": "/a",
"virtualSegments": ["b/__virtual__/foo-abcdef/1/c/foo.zip", "c/foo.zip"],
"zipPath": "bar"
}],
["/a/b/__virtual__/foo-abcdef/2/c/foo.zip/bar", {
"basePath": "/",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I'd expect, however, the current behaviour is to return ""

"virtualSegments": ["a/b/__virtual__/foo-abcdef/2/c/foo.zip", "c/foo.zip"],
"zipPath": "bar"
}],
["./a/b/c/.zip", null],
["./a/b/c/foo.zipp", null],
["./a/b/c/foo.zip/bar/baz/qux.zip", {
Expand Down