Skip to content

Instantly share code, notes, and snippets.

@luislavena
Last active December 15, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/5179408 to your computer and use it in GitHub Desktop.
Save luislavena/5179408 to your computer and use it in GitHub Desktop.
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)
C:\Users\Luis>move foo-trash V:/
Access is denied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment