Module: Windows::FileSystem
- Defined in:
- lib/windows/filesystem.rb
Constant Summary collapse
- GetDiskFreeSpace =
Win32API.new('kernel32', 'GetDiskFreeSpace', 'PPPPP', 'I')
- GetDiskFreeSpaceEx =
Win32API.new('kernel32', 'GetDiskFreeSpaceEx', 'PPPP', 'I')
Instance Method Summary collapse
- #GetDiskFreeSpace(path, sectors, bytes, free, total) ⇒ Object
- #GetDiskFreeSpaceEx(path, free_bytes, total_bytes, total_free) ⇒ Object
Instance Method Details
#GetDiskFreeSpace(path, sectors, bytes, free, total) ⇒ Object
8 9 10 |
# File 'lib/windows/filesystem.rb', line 8 def GetDiskFreeSpace(path, sectors, bytes, free, total) GetDiskFreeSpace.call(path, sectors, bytes, free, total) > 0 end |
#GetDiskFreeSpaceEx(path, free_bytes, total_bytes, total_free) ⇒ Object
12 13 14 |
# File 'lib/windows/filesystem.rb', line 12 def GetDiskFreeSpaceEx(path, free_bytes, total_bytes, total_free) GetDiskFreeSpaceEx.call(path, free_bytes, total_bytes, total_free) > 0 end |