Timeline for Replacing parts of a string containing directory paths using Python
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 19, 2019 at 20:57 | comment | added | Jonathan | @Tomerikoo . . . true, but I believe os.path.join() will format it in a manner consistent with the operating system so it will work in any environment. Linux uses forward slashes and Windows uses backslashes. | |
| Jun 19, 2019 at 18:12 | comment | added | Tomerikoo |
Or just "local/" + os.path.basename(inputstring)
|
|
| Jun 19, 2019 at 18:05 | history | answered | Jonathan | CC BY-SA 4.0 |