Displaying 2 results from an estimated 2 matches for "file_full_path".
2011 Dec 28
1
folders of path - platform independent (repost)
...o, (sorry re-posting due to typo)
I'm attempting to get the folders of a path in a robust way (platform
independent, format independent). It has to run on Windows and Linux and
tolerate different formats.
For these: (The paths don't actually exist in Linux but you get the idea.)
Windows:
file_full_path = "C://Program Files//R//R-2.13.1//NEWS.pdf"
file_full_path = "C:\Program Files\R\R-2.13.1\NEWS.pdf"
Linux:
file_full_path = "~/Program FilesR/R-2.13.1/NEWS.pdf"
file_full_path = "/home/username/Program FilesR/R-2.13.1/NEWS.pdf"
I would get for Windows: &quo...
2011 Dec 28
0
folders of path - platform independent
Hello,
I'm attempting to get the folders of a path in a robust way (platform
independent, format independent). It has to run on Windows and Linux and
tolerate different formats.
For these: (The paths don't actually exist in Linux but you get the idea.)
Windows:
file_full_path = "C://Program Files//R//R-2.13.1//NEWS.pdf"
file_full_path = "C:\Program Files\R\R-2.13.1\NEWS.pdf"
Linux:
file_full_path = "~/Program FilesR\R-2.13.1\NEWS.pdf"
file_full_path = "/home/username/Program FilesR\R-2.13.1\NEWS.pdf"
I would get for Windows: &quo...