// get the FULL paths of all directories and files under a specific directory public static void GetDirsAndFiles(this IDirectoryManager manager, string rootFullPath, out IEnumerable <string> dirs, out IEnumerable <string> files) { try { dirs = manager.GetDirectories(rootFullPath); files = manager.GetFiles(rootFullPath); } catch (Exception ex) { dirs = null; files = null; throw new ApplicationException($"Cannot get dorectory info in \"{rootFullPath}\"", ex); } }