Displaying 3 results from an estimated 3 matches for "removedirectory".
Did you mean:
remove_directory
2006 Jan 23
1
Odd Samba behavior using Windows XP client API RemoveDirectory function
I'm having problems with a utility I wrote deleting folders from a
Thecus N4100 Samba based fileserver. I do not have access or control
over its Samba config file and this may not be a Samba problem but
perhaps someone here can point me in the right direction???
When I issue a Windows API RemoveDirectory function against an empty
folder residing on a Samba share, the function returns with a success
return code but does not delete the folder! This is a known problem
and is documented in the Cygwin rmdir command as occurring when the
folder is flagged as read-only, which is the Samba default.
When...
2007 Oct 08
1
Getting an actual system error
Heya all,
I don''t think I''ve been paying attention. When a Windows API function
fails, I could have been doing this:
raise SystemCallError(GetLastError())
Instead of this:
# Where ''Error'' is nested under the current class.
raise Error, get_last_error
I''m not sure how big of a deal this is in practice, however, or if it''s
even preferred for
2007 Oct 04
0
Prototyping the Dir class
...rror
end
block.call
ensure
SetCurrentDirectory(current)
end
else
unless SetCurrentDirectory(dir)
raise ArgumentError, get_last_error
end
end
end
def self.delete(dirname)
unless RemoveDirectory(dirname)
raise ArgumentError, get_last_error
end
end
# Blend entries and foreach into one method
def self.entries(dirname)
dirname += "\\*"
fdata = 0.chr * 320 # 580 if wide
array = block_given? ? [] : nil
hfind = FindFirstFile(di...