Created
August 21, 2019 14:04
-
-
Save DSCF-1224/da1d59df4eac2e11b0df96ff4388cd48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function exchangeBackslash(path::Core.AbstractString) | |
return Base.replace(path, '\u005c' => '\u002f') | |
end | |
path_raw = Base.readline(Base.stdin) | |
path_fix = Main.exchangeBackslash(path_raw) | |
Base.println(Base.stdout, path_fix) | |
Base.println(Base.stdout, Base.Filesystem.isabspath(path_raw)) | |
Base.println(Base.stdout, Base.Filesystem.isabspath(path_fix)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment