code: def get_path(self, dir=None):
          
          if not dir:
              dir = self.fs.getcwd()
          if self == dir:
              return '.'
          path_elems = self.get_path_elements()
          pathname = ''
          try: i = path_elems.index(dir)
          except ValueError:
              for p in path_elems[:-1]:
                  pathname += p.dirname
          else:
              for p in path_elems[i+1:-1]:
                  pathname += p.dirname
          return pathname + path_elems[-1].name
docs: Return path relative to the current working directory of the
          Node.FS.Base object that owns us.