fulltext/services/store/store.py
def is_available(self, **kwargs: Any) -> bool:
        """Determine whether storage is available."""
        test_name = f'test-{datetime.timestamp(datetime.now(UTC))}'
        test_paper_path = self._paper_path('test', test_name)
        test_path = os.path.join(test_paper_path, test_name)
        try:
            self._store(test_path, 'test_name')
        except StorageFailed as e:
            logger.error('Could not write: %s', e)
            return False
        shutil.rmtree(test_paper_path)
        return True
Determine whether storage is available.
Determine whether storage is available.
Determine whether storage is available .
def is_available(self, **kwargs: Any) -> bool:
        test_name = f'test-{datetime.timestamp(datetime.now(UTC))}'
        test_paper_path = self._paper_path('test', test_name)
        test_path = os.path.join(test_paper_path, test_name)
        try:
            self._store(test_path, 'test_name')
        except StorageFailed as e:
            logger.error('Could not write: %s', e)
            return False
        shutil.rmtree(test_paper_path)
        return True
def is_available ( self , ** kwargs : Any ) -> bool : test_name = f'test-{datetime.timestamp(datetime.now(UTC))}' test_paper_path = self . _paper_path ( 'test' , test_name ) test_path = os . path . join ( test_paper_path , test_name ) try : self . _store ( test_path , 'test_name' ) except StorageFailed as e : logger . error ( 'Could not write: %s' , e ) return False shutil . rmtree ( test_paper_path ) return True
Determine whether storage is available.
Determine whether storage is available .
"""Determine whether storage is available."""
self
kwargs
Any