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.
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.
The API doc is your friend ( look for File::Stat )
On Thu, Jun 24, 2010 at 3:10 PM, ingcarlos <ing.carlos.s@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).
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
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@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.