ZeroInstall.Publish.EntryPoints.Candidate.IsExecutable C# (CSharp) 메소드

IsExecutable() 보호된 메소드

Determines whether a file is executable.
protected IsExecutable ( [ path ) : bool
path [
리턴 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);
        }