Timeline for How to remove a path prefix in python?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S May 24, 2021 at 21:34 | history | suggested | CommunityBot | CC BY-SA 4.0 |
update answer to point to python3 documentation and separate out relative_path for a better consistency as the full_path was a variable too
|
May 24, 2021 at 16:01 | review | Suggested edits | |||
S May 24, 2021 at 21:34 | |||||
Dec 10, 2018 at 10:50 | comment | added | martineau |
Totally agree with @intrepidhero's comment, plus this works whether or not full_path contains the trailing / character or not—so it's even more general than that.
|
|
Apr 12, 2018 at 7:41 | vote | accept | Natim | ||
Sep 18, 2015 at 22:59 | comment | added | intrepidhero | This is a much better answer because it avoids any issues with different path separators. | |
Nov 8, 2013 at 14:32 | vote | accept | Natim | ||
Jan 16, 2014 at 9:23 | |||||
Nov 8, 2013 at 10:35 | history | answered | Mitch ミッチ | CC BY-SA 3.0 |