From: ingcarlos on 24 Jun 2010 18:05 I wanna know how to check for a permission in a file, 'cause I see there is a method for changing the file permisison but there is no method to get the current ls -l (-l string). Any Ideas?. Tnx for a soon reply.
From: Hassan Schroeder on 24 Jun 2010 18:47 On Thu, Jun 24, 2010 at 3:10 PM, ingcarlos <ing.carlos.s(a)gmail.com> wrote: > I wanna know how to check for a permission in a file, 'cause I see > there is a method for changing the file permisison but there is no > method to get the current ls -l (-l string). The API doc is your friend :-) ( look for File::Stat ) -- Hassan Schroeder ------------------------ hassan.schroeder(a)gmail.com twitter: @hassan
From: Lee Jarvis on 24 Jun 2010 18:50 [Note: parts of this message were removed to make it a legal post.] Check out the File::Stat class: http://ruby-doc.org/core/classes/File/Stat.html On 24 June 2010 23:10, ingcarlos <ing.carlos.s(a)gmail.com> wrote: > I wanna know how to check for a permission in a file, 'cause I see > there is a method for changing the file permisison but there is no > method to get the current ls -l (-l string). > > Any Ideas?. > > Tnx for a soon reply. > >
|
Pages: 1 Prev: Newbie - how to use SQLite3 ? Next: Problem starting Rake in some directories |