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:
nick.kino 2024-11-08 17:23:01 -08:00 committed by GitHub
commit 3daebcb5b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);