file_test and dir.exists in other languages
Tell an uploaded file apart from its folder
C
fstat and statC++
std::filesystem::is_regular_fileGo
os.Stat and FileMode.IsRegularGroovy
File.isFile and isDirectoryJava
Files entry and access checksKotlin
Path.isRegularFile and isDirectoryPHP
is_file and is_dirPython
Path.is_file and is_dirRuby
File.file? and directory?Scala
Files.isRegularFile and isDirectory