def METHOD_NAME(syn, project, schedule_for_cleanup):
    """Creates a File Entity on an sftp server and add the external url."""
    filepath = utils.make_bogus_binary_file(1 * utils.MB - 777771)
    try:
        file = syn.store(File(filepath, parent=project))
        file2 = syn.get(file)
        assert file.externalURL == file2.externalURL
        assert urlparse(file2.externalURL).scheme == "sftp"
        tmpdir = tempfile.mkdtemp()
        schedule_for_cleanup(tmpdir)
        # test that we got an MD5 à la SYNPY-185
        assert file2.md5 is not None
        fh = syn._get_file_handle_as_creator(file2.dataFileHandleId)
        assert fh["contentMd5"] is not None
        assert file2.md5 == fh["contentMd5"]
    finally:
        try:
            os.remove(filepath)
        except Exception:
            print(traceback.format_exc())