Is the path a file/directory?
is_dir(x) is_file(x)
x
A vector of file paths
These are essentially taken from utils::file_test() for op = '-d' and op = -f but separated.
utils::file_test()
op = '-d'
op = -f
A logical vector
logical