From: Alexander McMillan Date: 2012-11-17T18:42:35+09:00 Subject: Re: following along with "Beginning Ruby." --_acace27e-2c7b-477d-8f61-5f1745065add_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Use FileUtils to delete entire folder/directory - Ruby itself will not dele= te directory if files inside > Date: Sat=2C 17 Nov 2012 14:02:53 +0900 > From: lists@ruby-forum.com > Subject: Re: following along with "Beginning Ruby." > To: ruby-talk@ruby-lang.org >=20 > I tried to delete a directory that I created. >=20 > Dir.delete("C:/Users/Al Baker/Documents/Programming/RuBy/NewDir") >=20 > and got this: >=20 > Errno::EACCES: Permission denied - C:/Users/Al=20 > Baker/Documents/Programming/RuBy/ > NewDir > from (irb):62:in `delete' > from (irb):62 > from C:/Ruby193/bin/irb:12:in `
' >=20 > --=20 > Posted via http://www.ruby-forum.com/. >=20 = --_acace27e-2c7b-477d-8f61-5f1745065add_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Use FileUtils to delete entire f= older/directory - Ruby itself will not delete directory if files inside
=
> Date:=3B Sat=2C 17 Nov 2012 14:=3B02:=3B53 +=3B0900
> = From:=3B lists@=3Bruby-forum.com
> Subject:=3B Re:=3B follow= ing along with "=3BBeginning Ruby."=3B
> To:=3B ruby-talk@= =3Bruby-lang.org
>
> I tried to delete a directory that I created.>
> Dir.delete(=3B"=3BC:=3B/Users/Al Baker/Documents/Program= ming/RuBy/NewDir"=3B)=3B
>
> and got this:=3B
>
> Er= rno:=3B:=3BEACCES:=3B Permission denied - C:=3B/Users/Al
> = Baker/Documents/Programming/RuBy/
> NewDir
> from (=3Birb&= #41=3B:=3B62:=3Bin `=3Bdelete'=3B
> from (=3Birb&= #41=3B:=3B62
> from C:=3B/Ruby193/bin/irb:=3B12:=3Bi= n `=3B<=3Bmain>=3B'=3B
>
> --
> Posted via http:= =3B//www.ruby-forum.com/.
>
= --_acace27e-2c7b-477d-8f61-5f1745065add_--