def remove_file_suffix(path):
    """
    Remove the deployment/develop file prefix in the path, for example, the develop of java is .java and the deployment is .class.
    This is to match if the file name of the path has a prefix like .java, and the deploy path may have the prefix like .class,
    in this case, it should be matching.
    For example, passing
    /home/test/src/test.java to the function
    will return
    /home/test/src/test
    """
    if path.endswith(('.java', '.class', '.c', '.cpp' '.o', '.exe', '.py', '.pyc')):
        return path.rsplit('.', 1)[0]
    return path