parameters: (self, path)
docstring: Check if the destination path exists and we are allowed to write there.
          Args:
              path(string): A recording destination path.
docstring_summary: Check if the destination path exists and we are allowed to write there.
          Args:
              path(string): A recording destination path.
docstring_tokens: Check if the destination path exists and we are allowed to write there . Args : path ( string ) : A recording destination path .
function: def _check_path(self, path):
          """Check if the destination path exists and we are allowed to write there.
          Args:
              path(string): A recording destination path.
          """
          self.mountpoint = utils.filesystem.get_mount_point(self.drive)
          self.drive_monitor = drive_manager.DRIVE_MANAGER.get_drive_monitor_for_path(self.drive)
  
          if not self.drive_monitor or not self.drive_monitor.is_Ok():
              raise errors.RecordingError("Can't start recording with given path {}.".format(path))
  
          if not os.path.exists(path):
              try:
                  os.makedirs(path)
              except:
                  raise errors.RecordingError("Can't start recording with given path {}.".format(path))
function_tokens: def _check_path ( self , path ) : self . mountpoint = utils . filesystem . get_mount_point ( self . drive ) self . drive_monitor = drive_manager . DRIVE_MANAGER . get_drive_monitor_for_path ( self . drive ) if not self . drive_monitor or not self . drive_monitor . is_Ok ( ) : raise errors . RecordingError ( "Can't start recording with given path {}." . format ( path ) ) if not os . path . exists ( path ) : try : os . makedirs ( path ) except : raise errors . RecordingError ( "Can't start recording with given path {}." . format ( path ) )