added LoggingModule
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using ExifLibrary;
|
||||
using JetBrains.Annotations;
|
||||
using PhotoRenamer.Base.Types;
|
||||
|
||||
namespace PhotoRenamer.Base
|
||||
{
|
||||
|
||||
public static class FilesHelper
|
||||
{
|
||||
private static readonly string[] SupportedFileExtensions = {".jpg", ".cr2", ".mp4"};
|
||||
@@ -26,7 +25,7 @@ namespace PhotoRenamer.Base
|
||||
}
|
||||
}
|
||||
|
||||
public static IEnumerable<MediaFile> GetMediaFiles([NotNull] IEnumerable<string> files)
|
||||
public static IEnumerable<MediaFile> GetMediaFiles(IEnumerable<string> files)
|
||||
{
|
||||
if (files == null) throw new ArgumentNullException(nameof(files));
|
||||
|
||||
@@ -39,17 +38,4 @@ namespace PhotoRenamer.Base
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class MediaFile
|
||||
{
|
||||
public string Path { get; }
|
||||
public DateTime CreationDate { get; }
|
||||
|
||||
public MediaFile(string path, DateTime creationDate)
|
||||
{
|
||||
Path = path;
|
||||
CreationDate = creationDate;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user