📅  最后修改于: 2022-03-11 15:04:50.195000             🧑  作者: Mango
代码示例1
# Check if filesystem node at path "name" is a directory
File.directory?("name")
# Check if it's a file
File.file?("name")