Skip to content

Instantly share code, notes, and snippets.

@DSCF-1224
Created August 21, 2019 14:04
Show Gist options
  • Save DSCF-1224/da1d59df4eac2e11b0df96ff4388cd48 to your computer and use it in GitHub Desktop.
Save DSCF-1224/da1d59df4eac2e11b0df96ff4388cd48 to your computer and use it in GitHub Desktop.
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