Skip to content

Commit

Permalink
Merge pull request #31 from PhilTaken/main
Browse files Browse the repository at this point in the history
fix fileninfo attribute names for the js target
  • Loading branch information
bcpeinhardt authored Jun 1, 2024
2 parents 7cec3cb + fdbadb4 commit f034160
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/simplifile_js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ class FileInfo {
this.mode = stat.mode
this.nlinks = stat.nlink
this.inode = stat.ino
this.userId = stat.uid
this.groupId = stat.gid
this.user_id = stat.uid
this.group_id = stat.gid
this.dev = stat.dev
this.atime = Math.floor(stat.atimeMs / 1000)
this.mtime = Math.floor(stat.mtimeMs / 1000)
this.ctime = Math.floor(stat.ctimeMs / 1000)
this.atime_seconds = Math.floor(stat.atimeMs / 1000)
this.mtime_seconds = Math.floor(stat.mtimeMs / 1000)
this.ctime_seconds = Math.floor(stat.ctimeMs / 1000)
}
}

Expand All @@ -261,4 +261,4 @@ function gleamResult(op) {
} catch(e) {
return new GError(e.code)
}
}
}

0 comments on commit f034160

Please sign in to comment.