module Chef::FileAccessControl::Windows::ClassMethods

Public Instance Methods

writable?(path) click to toggle source

We want to mix these in as class methods

# File lib/chef/file_access_control/windows.rb, line 35
def writable?(path)
  ::File.exists?(path) && Chef::ReservedNames::Win32::File.file_access_check(
    path, Chef::ReservedNames::Win32::API::Security::FILE_GENERIC_WRITE)
end