Class SCMProbe

    • Constructor Detail

      • SCMProbe

        public SCMProbe()
    • Method Detail

      • exists

        @Deprecated
        public final boolean exists​(@NonNull
                                    String path)
                             throws IOException
        Deprecated.
        Checks if the path, relative to the head candidate root, exists or not. The results of this method should be cached where possible but can involve a remote network call.
        Specified by:
        exists in class SCMSourceCriteria.Probe
        Parameters:
        path - the path.
        Returns:
        true iff the path exists (may be a file or a directory or a symlink or whatever).
        Throws:
        IOException - if a remote network call failed and the result is therefore indeterminate.
      • stat

        @NonNull
        public abstract SCMProbeStat stat​(@NonNull
                                          String path)
                                   throws IOException
        Checks if the path, relative to the head candidate root, exists or not. The results of this method should be cached where possible but can involve a remote network call.
        Overrides:
        stat in class SCMSourceCriteria.Probe
        Parameters:
        path - the path.
        Returns:
        The results of the check.
        Throws:
        IOException - if a remote network call failed and the result is therefore indeterminate.