Class | Ole::Storage::FileClass::Stat |
In: |
lib/ole/storage/file_system.rb
|
Parent: | Object |
rdev | -> | rdev_major |
rdev | -> | rdev_minor |
blksize | [R] | |
blocks | [R] | |
dev | [R] | |
ftype | [R] | |
gid | [R] | |
ino | [R] | |
nlink | [R] | |
rdev | [R] | |
size | [R] | |
uid | [R] |
# File lib/ole/storage/file_system.rb, line 61 61: def initialize dirent 62: @dirent = dirent 63: @size = dirent.size 64: if file? 65: @ftype = 'file' 66: bat = dirent.ole.bat_for_size(dirent.size) 67: @blocks = bat.chain(dirent.first_block).length 68: @blksize = bat.block_size 69: else 70: @ftype = 'directory' 71: @blocks = 0 72: @blksize = 0 73: end 74: # a lot of these are bogus. ole file format has no analogs 75: @nlink = 1 76: @uid, @gid = 0, 0 77: @dev, @rdev = 0, 0 78: @ino = 0 79: # need to add times - atime, mtime, ctime. 80: end