diff --git a/package-lock.json b/package-lock.json index c660ad0..24e4f2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.2.0", "license": "MIT", "dependencies": { - "utilium": "^0.3.4" + "utilium": ">=0.4.0" }, "devDependencies": { "@fal-works/esbuild-plugin-global-externals": "^2.1.2", @@ -977,6 +977,12 @@ "node": ">=6" } }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "license": "MIT" + }, "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -1965,9 +1971,13 @@ } }, "node_modules/utilium": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.3.4.tgz", - "integrity": "sha512-qk6wXThaKkeigQchXWEmTw388ZPvKHwYzpkcII/azXuE8OgQypOKH1j+fA6M88ucpqEdHqldXjNKzHya2S9lHA==" + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.5.10.tgz", + "integrity": "sha512-QP6vV82pp5m3U5eka1BvO8920LkcdNSsNSyuM13QHd3HKFhEcdFBGiBtSBL60FwkrrpQ7GC6PPdpGmv3++dqIw==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.1" + } }, "node_modules/vscode-oniguruma": { "version": "1.7.0", diff --git a/package.json b/package.json index a3a234d..f491a8c 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,6 @@ "@zenfs/core": "^0.12.0" }, "dependencies": { - "utilium": "^0.3.4" + "utilium": ">=0.4.0" } } diff --git a/src/IsoFS.ts b/src/IsoFS.ts index 01322c9..4af1219 100644 --- a/src/IsoFS.ts +++ b/src/IsoFS.ts @@ -1,10 +1,11 @@ -import { ErrnoError, Errno } from '@zenfs/core/error.js'; import type { Backend } from '@zenfs/core/backends/backend.js'; import type { Cred } from '@zenfs/core/cred.js'; +import { S_IFDIR, S_IFREG } from '@zenfs/core/emulation/constants.js'; import { resolve } from '@zenfs/core/emulation/path.js'; +import { Errno, ErrnoError } from '@zenfs/core/error.js'; import { NoSyncFile, isWriteable } from '@zenfs/core/file.js'; import { FileSystem, Readonly, Sync, type FileSystemMetadata } from '@zenfs/core/filesystem.js'; -import { FileType, Stats } from '@zenfs/core/stats.js'; +import { Stats } from '@zenfs/core/stats.js'; import { DirectoryRecord } from './DirectoryRecord.js'; import { PrimaryOrSupplementaryVolumeDescriptor, PrimaryVolumeDescriptor, SupplementaryVolumeDescriptor, VolumeDescriptor, VolumeDescriptorType } from './VolumeDescriptor.js'; import { PXEntry, TFEntry, TFFlags } from './entries.js'; @@ -190,7 +191,7 @@ export class IsoFS extends Readonly(Sync(FileSystem)) { // Mask out writeable flags. This is a RO file system. mode &= 0o555; return new Stats({ - mode: mode | (record.isDirectory(this._data) ? FileType.DIRECTORY : FileType.FILE), + mode: mode | (record.isDirectory(this._data) ? S_IFDIR : S_IFREG), size: record.dataLength, atimeMs, mtimeMs,