Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. File.open(File.join(SOME_TEMP_DIR, "hello.txt"), "w") { |f| f.puts("hello") }
  2. # => Failure/Error: File.open(File.join(SOME_TEMP_DIR, "hello.txt"), "w") { |f| f.puts("hello") }
  3. # => Errno::ENOENT: No such file or directory - /home/PATH_TO_MY_SOME_TEMP_DIR/hello.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement