original_docstring: Checks if the storage file path is valid.
  
      Args:
        storage_file_path: The path of the storage file.
  
      Raises:
        BadConfigOption: if the storage file path is invalid.
      
docstring: Checks if the storage file path is valid.
docstring_tokens: Checks if the storage file path is valid .
code: def _CheckStorageFile(self, storage_file_path):
      """Checks if the storage file path is valid.
  
      Args:
        storage_file_path: The path of the storage file.
  
      Raises:
        BadConfigOption: if the storage file path is invalid.
      """
      if os.path.exists(storage_file_path):
        if not os.path.isfile(storage_file_path):
          raise errors.BadConfigOption(
              u'Storage file: {0:s} already exists and is not a file.'.format(
                  storage_file_path))
        logging.warning(u'Appending to an already existing storage file.')
  
      dirname = os.path.dirname(storage_file_path)
      if not dirname:
        dirname = '.'
  
      # TODO: add a more thorough check to see if the storage file really is
      # a plaso storage file.
  
      if not os.access(dirname, os.W_OK):
        raise errors.BadConfigOption(
            u'Unable to write to storage file: {0:s}'.format(storage_file_path))
code_tokens: def _CheckStorageFile ( self , storage_file_path ) : if os . path . exists ( storage_file_path ) : if not os . path . isfile ( storage_file_path ) : raise errors . BadConfigOption ( u'Storage file: {0:s} already exists and is not a file.' . format ( storage_file_path ) ) logging . warning ( u'Appending to an already existing storage file.' ) dirname = os . path . dirname ( storage_file_path ) if not dirname : dirname = '.' if not os . access ( dirname , os . W_OK ) : raise errors . BadConfigOption ( u'Unable to write to storage file: {0:s}' . format ( storage_file_path ) )
short_docstring: Checks if the storage file path is valid.
short_docstring_tokens: Checks if the storage file path is valid .
comment: """Checks if the storage file path is valid.
  
      Args:
        storage_file_path: The path of the storage file.
  
      Raises:
        BadConfigOption: if the storage file path is invalid.
      """$SEP$# TODO: add a more thorough check to see if the storage file really is$SEP$# a plaso storage file.