/// <summary> /// Determines if the folder is a bin plugin folder for a package /// </summary> /// <param name="folder">Folder</param> /// <returns>True if the folder is a bin plugin folder for a package; otherwise false</returns> private static bool IsPackagePluginFolder(string folder) { if (string.IsNullOrEmpty(folder)) { return(false); } var parent = _fileProvider.GetParentDirectory(folder); if (string.IsNullOrEmpty(parent)) { return(false); } if (!_fileProvider.GetDirectoryNameOnly(parent).Equals(GSPluginDefaults.PathName, StringComparison.InvariantCultureIgnoreCase)) { return(false); } return(true); }