/// <summary> /// Determines whether a file is executable. /// </summary> 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)); }