code: def _restrict_sequence(self):
          
  
          if self.pathname:
              value = self.seq_path_dot if self.after_start and not self.dot else self.seq_path
              if self.after_start:
                  value = self.no_dir + value
          else:
              value = _NO_DOT if self.after_start and not self.dot else ""
          self.reset_dir_track()
  
          return value
docs: Restrict sequence.