src/SyncTool.Git/main/Synchronization/SyncActions/GitSyncActionService.cs
/// <summary>
/// Recursively loads all sync actions from the specified directory
/// </summary>
Recursively loads all sync actions from the specified directory
Recursively loads all sync actions from the specified directory
IEnumerable<SyncAction> LoadSyncActions(IDirectory directory)
        {
            return directory
                .EnumerateFilesRecursively()
                .Where(f => f.Name.EndsWith(SyncActionFile.FileNameSuffix, StringComparison.InvariantCultureIgnoreCase))
                .Cast<IReadableFile>()
                .Select(file => SyncActionFile.Load(null, file).Content);
        }
IEnumerable < SyncAction > LoadSyncActions ( IDirectory directory ) { return directory . EnumerateFilesRecursively ( ) . Where ( f => f . Name . EndsWith ( SyncActionFile . FileNameSuffix , StringComparison . InvariantCultureIgnoreCase ) ) . Cast < IReadableFile > ( ) . Select ( file => SyncActionFile . Load ( null , file ) . Content ) ; }
Recursively loads all sync actions from the specified directory
Recursively loads all sync actions from the specified directory
directory
IDirectory