예제 #1
0
        public PathChange(
            Configuration configuration,
            ChangeMode mode,
            ChangeLocation location,
            string relativePath,
            IReadFileSystem readFileSystem,
            IWriteFileSystem writeFileSystem)
        {
            Configuration = configuration;
            Mode = mode;
            Location = location;
            RelativePath = relativePath;
            ReadFileSystem = readFileSystem;
            WriteFileSystem = writeFileSystem;

            Source = Path.Combine(Configuration.SourcePath, RelativePath);
            Target = Path.Combine(Configuration.TargetPath, RelativePath);
        }
예제 #2
0
		static async Task deepSynchronization(Configuration Configuration, IReadFileSystem reader, IWriteFileSystem writer)
		{
			var pc = new PathChange(Configuration, ChangeMode.Deep, ChangeLocation.Unknown, "", reader, writer);
			await Synchronizer.sync(pc);
		}