Module: Windows::MSVCRT::File

Defined in:
lib/windows/msvcrt/file.rb

Constant Summary collapse

S_IFMT =

file type mask

0170000
S_IFDIR =

directory

0040000
S_IFCHR =

character special

0020000
S_IFIFO =

pipe

0010000
S_IFREG =

regular

0100000
S_IREAD =

read permission, owner

0000400
S_IWRITE =

write permission, owner

0000200
S_IEXEC =

execute/search permission, owner

0000100
Stat =
Win32API.new('msvcrt', '_stat', 'PP', 'I')
Wstat =
Win32API.new('msvcrt', '_wstat', 'PP', 'I')
Stat64 =
Win32API.new('msvcrt', '_stat64', 'PP', 'I')
Wstat64 =
Win32API.new('msvcrt', '_wstat64', 'PP', 'I')

Instance Method Summary collapse

Instance Method Details

#stat(path, buffer) ⇒ Object



20
21
22
# File 'lib/windows/msvcrt/file.rb', line 20

def stat(path, buffer)
   Stat.call(path, buffer)
end

#stat64(path, buffer) ⇒ Object



24
25
26
# File 'lib/windows/msvcrt/file.rb', line 24

def stat64(path, buffer)
   Stat64.call(path, buffer)
end

#wstat(path, buffer) ⇒ Object



28
29
30
# File 'lib/windows/msvcrt/file.rb', line 28

def wstat(path, buffer)
   Wstat.call(path, buffer)
end

#wstat64(path, buffer) ⇒ Object



32
33
34
# File 'lib/windows/msvcrt/file.rb', line 32

def wstat64(path, buffer)
   Wstat64.call(path, buffer)
end