@poe-platform/safe-fs 0.1.824 → 0.1.826
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -304,7 +304,9 @@ export function writePythonStat(heap, pointer, stat) {
|
|
|
304
304
|
nlink: integer('nlink', 0xffffffff), uid: integer('uid', 0xffffffff),
|
|
305
305
|
gid: integer('gid', 0xffffffff), rdev: integer('rdev', 0xffffffff),
|
|
306
306
|
size: integer('size', Number.MAX_SAFE_INTEGER), ino: integer('ino', Number.MAX_SAFE_INTEGER),
|
|
307
|
-
|
|
307
|
+
// Signed native fields use -1 for unknown; zero would claim an observation.
|
|
308
|
+
blksize: stat.blksize === undefined ? -1 : integer('blksize', 0x7fffffff),
|
|
309
|
+
blocks: stat.blocks === undefined ? -1 : integer('blocks', 0x7fffffff),
|
|
308
310
|
};
|
|
309
311
|
const times = ['atime', 'mtime', 'ctime'].map(key => {
|
|
310
312
|
const time = stat[key + 'Ms'] ?? stat[key]?.getTime();
|