public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12
irb(main):013:0> a = Dir.mktmpdir "foo"
=> "C:/Users/Luis/AppData/Local/Temp/foo20130317-4772-1embew8"
irb(main):014:0> FileUtils.mv a, "V:/foo"
Errno::EACCES: Permission denied - (C:/Users/Luis/AppData/Local/Temp/foo20130317-4772-1embew8, V:/foo)
 
C:\Users\Luis>irb
irb(main):001:0> require "fileutils"
=> true
irb(main):002:0> Dir.mkdir "foo-trash"
=> 0
irb(main):003:0> FileUtils.mv "foo-trash", "V:/"
Errno::EACCES: Permission denied - (foo-trash, V:/foo-trash)
gistfile2.txt
1 2
C:\Users\Luis>move foo-trash V:/
Access is denied.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.