File Directory Ruby

File.writable?( "yourFile.txt" ) # => true