-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
38 lines (30 loc) · 1.22 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using MetadataExtractor;
using MetadataExtractor.Formats.Exif;
namespace PicMover
{
class Program
{
static void Main(string[] args)
{
var mover = new Mover(@"C:\Users\flytz\OneDrive\Pictures\Camera Roll", @"D:\Photos", "*.jpe", "*.nef", "*.jpg", "*.CRW");
mover.Move();
var videoMover = new Mover(@"C:\Users\flytz\OneDrive\Pictures\Camera Roll", @"D:\Videos", "*.mov", "*.mp4", "*.avi");
videoMover.Move();
var cameraMover = new Mover(@"F:\DCIM\100OLYMP", @"D:\Photos", "*.jpe", "*.nef", "*.jpg", "*.CRW");
cameraMover.Move();
var cameraVideoMover = new Mover(@"F:\DCIM\100OLYMP", @"D:\Videos", "*.mov", "*.mp4", "*.avi");
cameraVideoMover.Move();
// foreach (var file in System.IO.Directory.EnumerateFiles(@"D:\Test"))
// {
// var date = DateExtractor.GetCreatedDate(file);
// Console.WriteLine("{0} : {1}", file, date?.ToString() ?? "no date");
// }
Console.ReadKey();
}
}
}