XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Thu Apr 16, 2009 10:29 pm
Hello, world!
I'm thoroughly stumped.
I have Ruby installed on my dad's computer, and cannot use it to rename or delete files. All other features work well. It only says "Permission Denied".
Any thoughts?
Thanks!
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Thu Apr 16, 2009 10:38 pm
What operating system are you using?
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Thu Apr 16, 2009 10:49 pm
Windows XP. Just discovered that I had it open earlier in the script, and forgot to close it. But, now I am trying to delete a folder , and it is giving me the same problem. It was made with FileUtils.mkdir_p, and then a file was put into it with File.move. I don't think that either of those require you to close the file.
Thanks
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Thu Apr 16, 2009 10:56 pm
What is the error message?
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Thu Apr 16, 2009 11:14 pm
c:/Program Files/ruby/lib/ruby/1.8/tk.rb
in `callback': Errno::EACCES: Permission denied - C:\Documents and Settings\User\My Documents\New Folder (Errno::EACCES)
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Thu Apr 16, 2009 11:34 pm
Whoa! This post is the fourth result.
Jonah Bron
DevNet Master
Posts: 2764 Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California
Post
by Jonah Bron » Fri Apr 17, 2009 2:44 pm
Uh-duh! I was trying to use the File class to delete a directory, instead of the Dir class.
Thanks!
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Fri Apr 17, 2009 3:04 pm
Jonah Bron wrote: Whoa! This post is the fourth result.
Yeah, google is getting pretty quick!