Ruby/File Directory/File SEPARATOR

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

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

OS independent

File.join(File::SEPARATOR , "full", "path", "here", "filename.txt")



use File.expand_path to turn basic filenames into complete paths

File.expand_path("text.txt")