mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
Feat: js action
wip: Getting async js feat: Have execute get action config feat: Read + Write chore: Add typing for globals chore: Change the default path, include error on missing function, and add json File Read Write chore: Change the default path, include error on missing function, and add json File Read Write wip: Fix the unit test wip: Fix the unit test feat: module loading
This commit is contained in:
1935
backend/Cargo.lock
generated
1935
backend/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -647,7 +647,10 @@ mod js_runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// We need to make sure that during the file accessing, we don't reach beyond our scope of control
|
/// We need to make sure that during the file accessing, we don't reach beyond our scope of control
|
||||||
async fn is_subset(parent: impl AsRef<Path>, child: impl AsRef<Path>) -> Result<bool, AnyError> {
|
async fn is_subset(
|
||||||
|
parent: impl AsRef<Path>,
|
||||||
|
child: impl AsRef<Path>,
|
||||||
|
) -> Result<bool, AnyError> {
|
||||||
let child = tokio::fs::canonicalize(child).await?;
|
let child = tokio::fs::canonicalize(child).await?;
|
||||||
let parent = tokio::fs::canonicalize(parent).await?;
|
let parent = tokio::fs::canonicalize(parent).await?;
|
||||||
Ok(child.starts_with(parent))
|
Ok(child.starts_with(parent))
|
||||||
|
|||||||
Reference in New Issue
Block a user