Get file dir from string
file_get_dir(str, up = FALSE)
str
up
up dir
a character specifying the dir path