Skip to content

Relative paths #1

Description

@preethampaul

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 = '~'
#----------------------------------------------------

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions