K
Kurt Euler
All-
On a Windows NT system, is there a way to quickly delete directories (from within a Ruby script) that may have read-only files in them. The command I've been using is
File.delete(*Dir["*.*"])
but this crashes when it hits a RO file.
Similarly, is there a way to force the overwriting of a RO file? I've been using File.syscopy, but this, too, crashes when attempting to overwrite an RO file.
Thanks!
-Kurt Euler
On a Windows NT system, is there a way to quickly delete directories (from within a Ruby script) that may have read-only files in them. The command I've been using is
File.delete(*Dir["*.*"])
but this crashes when it hits a RO file.
Similarly, is there a way to force the overwriting of a RO file? I've been using File.syscopy, but this, too, crashes when attempting to overwrite an RO file.
Thanks!
-Kurt Euler