Do you own the file : owned « File Directory « Ruby






Do you own the file


File.owned? 'test_file'                  # => true
File.owned? '/bin/ls'                    # => false

 

Related examples in the same category