mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
feat: uid/gid/mode added to metadata (#1551)
This commit is contained in:
@@ -111,6 +111,15 @@ export async function getConfig(effects) {
|
||||
if (typeof metadata.len !== 'number' ) {
|
||||
throw new TypeError("len is not a number")
|
||||
}
|
||||
if (typeof metadata.gid !== 'number' ) {
|
||||
throw new TypeError("gid is not a number")
|
||||
}
|
||||
if (typeof metadata.uid !== 'number' ) {
|
||||
throw new TypeError("uid is not a number")
|
||||
}
|
||||
if (typeof metadata.mode !== 'number' ) {
|
||||
throw new TypeError("mode is not a number")
|
||||
}
|
||||
if (!(metadata.modified instanceof Date )) {
|
||||
throw new TypeError("modified is not a Date")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user