search for: backup_semantics

Displaying 1 result from an estimated 1 matches for "backup_semantics".

2004 Nov 11
3
File.nopen alpha
...ows you to open directories, which File.open * cannot do on Windows. * * The access mode defaults to READ_DATA | WRITE_DATA * The share mode defaults to SHARE_READ | SHARE_WRITE * The creation mode defaults to OPEN_EXISTING * The flags default to NORMAL * * To open a directory, pass File::BACKUP_SEMANTICS as the ''flags'' argument. So, with this I can do: dir = "C:\\TEST" # directory fh = File.nopen(dir,nil,nil,nil,File::BACKUP_SEMANTICS) p fh # Yup, it''s a File object p fh.class # File fh.close I can also open a plain file and read the contents. So far, so goo...