Skip to content

Commit

Permalink
Merge pull request #233 from QutEcoacoustics/Issue-#186_Suboptimal_LDFCs
Browse files Browse the repository at this point in the history
Issue #186 suboptimal ldf cs
  • Loading branch information
atruskie authored Sep 24, 2019
2 parents 4462211 + ea59702 commit d5f0523
Show file tree
Hide file tree
Showing 30 changed files with 814 additions and 2,540 deletions.
12 changes: 11 additions & 1 deletion src/Acoustics.Shared/Extensions/ZioExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <copyright file="ZioExtensions.cs" company="QutEcoacoustics">
// <copyright file="ZioExtensions.cs" company="QutEcoacoustics">
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group).
// </copyright>

Expand Down Expand Up @@ -64,6 +64,16 @@ public static FileInfo ToFileInfo(this FileEntry file)
return new FileInfo(file.Path.ToOsPath());
}

public static DirectoryInfo ToDirectoryInfo(this DirectoryEntry directory)
{
Contract.Requires(directory != null);
Contract.Requires(
directory.FileSystem is PhysicalFileSystem,
$"To convert the path {directory} back to a physical filesystem, it must be from a physical file system");

return new DirectoryInfo(directory.Path.ToOsPath());
}

public static DirectoryEntry Combine(this DirectoryEntry directoryInfo, params string[] str)
{
Contract.Requires(directoryInfo != null);
Expand Down
Loading

0 comments on commit d5f0523

Please sign in to comment.