mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-25 14:46:44 +00:00
fix stat options when stat(path, options) (#2492)
This commit is contained in:
@@ -19,7 +19,7 @@ const stat = async function (...args) {
|
||||
// Otherwise, we assume separate arguments are provided
|
||||
options = {
|
||||
path: args[0],
|
||||
options: typeof args[1] === 'object' ? args[1] : {},
|
||||
...(typeof args[1] === 'object' ? args[1] : {}),
|
||||
success: typeof args[1] === 'object' ? args[2] : args[1],
|
||||
error: typeof args[1] === 'object' ? args[3] : args[2],
|
||||
// Add more if needed...
|
||||
|
||||
Reference in New Issue
Block a user