mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 19:34:06 +03:00
Merge pull request #602 from kinode-dao/hf/vfs-fix-drive-for-test-caps
vfs: fix bad change from d3ee13e
that broke caps
This commit is contained in:
commit
3daebcb5b2
@ -343,7 +343,8 @@ async fn handle_request(
|
|||||||
|
|
||||||
// current prepend to filepaths needs to be: /package_id/drive/path
|
// current prepend to filepaths needs to be: /package_id/drive/path
|
||||||
let (package_id, drive, rest) = parse_package_and_drive(&request.path, &vfs_path)?;
|
let (package_id, drive, rest) = parse_package_and_drive(&request.path, &vfs_path)?;
|
||||||
let drive = format!("{package_id}/{drive}");
|
// must have prepended `/` here or else it messes up caps downstream, e.g. in run-tests
|
||||||
|
let drive = format!("/{package_id}/{drive}");
|
||||||
let action = request.action;
|
let action = request.action;
|
||||||
let path = PathBuf::from(&request.path);
|
let path = PathBuf::from(&request.path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user