{"id":20290458,"url":"https://github.com/ksss/mruby-file-stat","last_synced_at":"2025-04-11T10:59:59.490Z","repository":{"id":54552471,"uuid":"20607715","full_name":"ksss/mruby-file-stat","owner":"ksss","description":"File::Stat class in mruby","archived":false,"fork":false,"pushed_at":"2023-09-17T14:43:29.000Z","size":162,"stargazers_count":15,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T07:23:30.334Z","etag":null,"topics":["mruby","stat"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-06-08T02:42:28.000Z","updated_at":"2023-09-17T08:42:36.000Z","dependencies_parsed_at":"2022-08-13T19:30:36.410Z","dependency_job_id":"7107e6bc-02d0-468f-a735-a1cfc5675d24","html_url":"https://github.com/ksss/mruby-file-stat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksss%2Fmruby-file-stat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksss%2Fmruby-file-stat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksss%2Fmruby-file-stat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksss%2Fmruby-file-stat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksss","download_url":"https://codeload.github.com/ksss/mruby-file-stat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381716,"owners_count":21094525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mruby","stat"],"created_at":"2024-11-14T15:07:39.869Z","updated_at":"2025-04-11T10:59:59.465Z","avatar_url":"https://github.com/ksss.png","language":"C","readme":"# mruby-file-stat\n\n[![CI](https://github.com/ksss/mruby-file-stat/workflows/CI/badge.svg)](https://github.com/ksss/mruby-file-stat/actions)\n\n**File::Stat** class in mruby\n\n```ruby\nstat = File::Stat.new('filename') # or File.stat('filename')\nstat.dev #=\u003e device id\nstat.dev_major #=\u003e device major id\nstat.dev_minor #=\u003e device minor id\nstat.ino #=\u003e i-node number\nstat.mode #=\u003e permission value (st_mode)\nstat.nlink #=\u003e hard link count\nstat.uid #=\u003e user id\nstat.gid #=\u003e group id\nstat.rdev #=\u003e device type\nstat.rdev_major #=\u003e rdev major id\nstat.rdev_minor #=\u003e rdev minor id\nstat.atime #=\u003e last access time\nstat.mtime #=\u003e last modify time\nstat.ctime #=\u003e last change attribute time\nstat.birthtime #=\u003e file created time\nstat.size #=\u003e file size(byte)\nstat.blksize #=\u003e file I/O block size\nstat.blocks #=\u003e attached block num\nstat.grpowned #=\u003e same gid?\nstat.\u003c=\u003e #=\u003e comparate mtime (-1,0,1 or nil)\nstat.size?\nstat.zero?\nstat.symlink?\nstat.file?\nstat.directory?\nstat.chardev?\nstat.blockdev?\nstat.pipe?\nstat.socket?\nstat.owned?\nstat.owned_real?\nstat.readable?\nstat.readable_real?\nstat.writable?\nstat.writable_real?\nstat.executable?\nstat.executable_real?\nstat.world_readable?\nstat.world_writable?\nstat.setuid?\nstat.setgid?\nstat.sticky?\nstat.ftype #=\u003e socket, link, file, blockSpecial, directory, characterSpecial, fifo or unknown\n```\n\nThis library is wrap of struct stat.\n\n## Installation\n\n### use github repository\n\nWrite in /mruby/build_config.rb\n\n```ruby\nMRuby::Build.new do |conf|\n  # by mgem\n  conf.gem :mgem =\u003e 'mruby-file-stat'\n  # by github\n  conf.gem :github =\u003e 'ksss/mruby-file-stat', :branch =\u003e 'master'\nend\n```\n\n## Homepage\n\nhttps://github.com/ksss/mruby-file-stat\n\n## License\n\nSee [https://github.com/ruby/ruby/blob/trunk/file.c](https://github.com/ruby/ruby/blob/trunk/file.c)\n\n## Doc\n\n[http://ruby-doc.org/core-2.1.5/File/Stat.html](http://ruby-doc.org/core-2.1.5/File/Stat.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksss%2Fmruby-file-stat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksss%2Fmruby-file-stat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksss%2Fmruby-file-stat/lists"}