Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative paths #1

Open
preethampaul opened this issue Jun 9, 2020 · 0 comments
Open

Relative paths #1

preethampaul opened this issue Jun 9, 2020 · 0 comments

Comments

@preethampaul
Copy link
Owner

While using cd, ls or other file handling commands, the relative paths do not work well. The parse_drive_paths function in drive_util works well, problem is with the commented snippets in gd.py.

#---------------DEBUGGING REQ---------------------
if drive_path.startswith('/'):
      drive_path = '~/' + drive_path[1:]
      
if CURR_HOME_DIR in drive_path:
      drive_path = drive_path.split(CURR_HOME_DIR)[-1]
 
if drive_path=='/':
     drive_path = '~'
#----------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant