def get_remote_file(self, share, path):
        """This function will check if a path is readable in a SMB share."""
        try:
            remote_file = RemoteFile(self.smb.conn, path, share, access=FILE_READ_DATA)
            return remote_file
        except SessionError:
            if self.reconnect():
                return self.get_remote_file(share, path)

            return None
This function will check if a path is readable in a SMB share.
cme/modules/spider_plus.py