示例#1
0
        public static bool Run()
        {
            FileCollection fileCollection = new FileCollection(@"D:\Media\Photos", @"D:\Media\Photos Organized", String.Empty);

            if (!Directory.Exists(fileCollection.sourcePath))
            {
                return("Source Path does not exist " + fileCollection.sourcePath);
            }

            fileCollection.GetSourceFiles("Memories");

            foreach (string key in fileCollection.fileContainer.Keys)
            {
                FileContainer fileContainer = fileCollection.fileContainer[key];

                SetDateTaken(fileContainer);

                SetDestinationPath(fileContainer, fileCollection.destPath);

                CopyFileToDestination(fileContainer);
            }

            return(true);
        }