Ruby/File Directory/readable real

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

readable_real? Returns true if statfile is readable by the real user ID of this process.

File.stat("testfile").readable_real?  
File.stat("/etc/passwd").readable_real?