Use
basename("C:/some_dir/a.ext")
# [1] "a.ext"
dirname("C:/some_dir/a.ext")
# [1] "C:/some_dir"
More Related Contents:
- Determine path of the executing script
- How to save all console output to file in R?
- for IE gives full path, need file name only
- Automatically Delete Files/Folders
- Why should text files end with a newline?
- Read multiple CSV files into separate data frames
- Batch files: How to read a file?
- How to force Logstash to reparse a file?
- Getting path of an R script
- Escaping backslash (\) in string or paths in R
- Symfony2 file upload step by step
- SQLite3 database or disk is full / the database disk image is malformed
- Android path to asset txt file
- How to limit the number of dropzone.js files uploaded?
- Powershell: Check if a file is locked
- Batch file to delete first 3 lines of a text file
- batch file: list rar file in specific folder and write result into text file
- How do I move files in node.js?
- Has Windows 7 Fixed the 255 Character File Path Limit?
- ASP.Net MVC – Read File from HttpPostedFileBase without save
- How to find the largest file in a directory and its subdirectories?
- File Uri Scheme and Relative Files
- Download file from url, save to phones storage
- How do I find the current directory of a batch file, and then use it for the path?
- How to check if a file exists in Go?
- Process leaked file descriptors error on JENKINS
- Why I get this error writing data to a file
- Whats the default path for static files in Angular2?
- Python not able to open file with non-english characters in path
- Reading text file with multiple space as delimiter in R