コード例 #1
0
        public void ArchivePhotosBasedOnDays(string SourceDirectory, string DestinationDirectory, bool cleanUpSource)
        {
            //Todo: Get Files From Source Directory
            List <FileInformation> filePaths = _fileOperations.GetFilesInDirectory(SourceDirectory);
            FileNameGenerator      fng       = new FileNameGenerator(_fileOperations);
            List <FileInformation> populatedFileInformation = new List <FileInformation>();

            foreach (FileInformation fileInformation in filePaths)
            {
                populatedFileInformation.Add(fng.GenerateFullyQualifiedName(fileInformation, DestinationDirectory));
            }
            _fileOperations.CopyFilesToDirectory(filePaths, false);
        }