ZeroInstall.Publish.EntryPoints.Candidate.IsExecutable C# (CSharp) Method

IsExecutable() protected method

Determines whether a file is executable.
protected IsExecutable ( [ path ) : bool
path [
return bool
        protected bool IsExecutable([NotNull] string path)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path));
            #endregion

            return
                FileUtils.IsExecutable(path) ||
                FlagUtils.GetFiles(FlagUtils.XbitFile, BaseDirectory.FullName).Contains(path);
        }