def _is_empty(self):
        if self.is_folder:
            try:
                dirs, files = default_storage.listdir(self.path)
            except __HOLE__:
                from mezzanine.core.exceptions import FileSystemEncodingChanged
                raise FileSystemEncodingChanged()
            if not dirs and not files:
                return True
        return False
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/base.py/FileObject._is_empty