Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Bumped utilium version
Browse files Browse the repository at this point in the history
Simplified some imports
  • Loading branch information
james-pre committed Sep 13, 2024
1 parent 9d78bba commit 1093121
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
18 changes: 14 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"@zenfs/core": "^0.12.0"
},
"dependencies": {
"utilium": "^0.3.4"
"utilium": ">=0.4.0"
}
}
7 changes: 4 additions & 3 deletions src/IsoFS.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1093121

Please sign in to comment.