May-12-2018, 11:13 AM
It may have to do with One Drive - take the file off one drive and store it locally - avoid spaces in your directory naming - If you need a space use - or _ . Or you can try this - let say your directory path is c:\new dir - you could try cd new\dir or cd " new dir ".
I found this code - by googling - copy the code your to editor then save it as win2ubu.py - the rest is explained in the code itself.
This is not my code all credit goes to Joe Dorocak aka Joe Codeswell (JoeCodeswell.com). It may help you to convert your windows directory paths to linux paths.
I found this code - by googling - copy the code your to editor then save it as win2ubu.py - the rest is explained in the code itself.
This is not my code all credit goes to Joe Dorocak aka Joe Codeswell (JoeCodeswell.com). It may help you to convert your windows directory paths to linux paths.
#!/usr/bin/python #! python3 #! python2 # -*- coding: utf-8 -*- """win2ubu.py changes WINFILEPATH Printing UBUNTU_FILEPATH Author: Joe Dorocak aka Joe Codeswell (JoeCodeswell.com) Usage: win2ubu.py WINFILEPATH Example: win2ubu.py "C:\\1d\ProgressiveWebAppPjs\\Polymer2.0Pjs\\PolymerRedux\\zetc\\polymer-redux-polymer-2" prints /mnt/c/1d/ProgressiveWebAppPjs/Polymer2.0Pjs/PolymerRedux/zetc/polymer-redux-polymer-2 N.B. spaceless path needs quotes in BASH on Windows but NOT in Windows DOS prompt! """ import sys,os def winPath2ubuPath(winpath): # d,p = os.path.splitdrive(winpath) # NG only works on windows! d,p = winpath.split(':') ubupath = '/mnt/'+d.lower()+p.replace('\\','/') print (ubupath) return ubupath NUM_ARGS = 1 def main(): args = sys.argv[1:] if len(args) != NUM_ARGS or "-h" in args or "--help" in args: print (__doc__) sys.exit(2) winPath2ubuPath(args[0]) if __name__ == '__main__': main()