Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

how to convert backslash to forward slash in path name on gcp using python

$
0
0

while copying the file path from local to Google Cloud Platform, the path at local is in retail_db\categories\part-00000 format whereas GCP is accepting format as retail_db/categories/part-00000

I have successfully copied the path to GCP but it is showing like this:gs://kiretail/pythondemo/retail_db\categories\part-00000

How to replace this backward slash with forward slash?

tried using this:

path.replace("\\", "/")

But still I am missing something

code snippet1

code snippet 2


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>