Skip to content

Commit

Permalink
Remove debug logging that was missed (#56)
Browse files Browse the repository at this point in the history
Closes issue #55
  • Loading branch information
kthompson authored Nov 19, 2019
1 parent 3c207b5 commit 711b329
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
9 changes: 8 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.1.5]
### Fixed
- Issue #55: Remove debug prints

## [1.1.4]
### Changed
- Removed reference to System.ValueTuple
Expand Down Expand Up @@ -68,7 +74,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fix issue that caused unnecessary directory traversal (#20)
- Fix issue where Glob.Directories did not always match properly

[Unreleased]: https://github.com/kthompson/glob/compare/1.1.4...HEAD
[Unreleased]: https://github.com/kthompson/glob/compare/1.1.5...HEAD
[1.1.5]: https://github.com/kthompson/glob/compare/1.1.4...1.1.5
[1.1.4]: https://github.com/kthompson/glob/compare/1.1.3...1.1.4
[1.1.3]: https://github.com/kthompson/glob/compare/1.1.2...1.1.3
[1.1.2]: https://github.com/kthompson/glob/compare/1.1.1...1.1.2
Expand Down
8 changes: 2 additions & 6 deletions src/Glob/Glob.Statics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,9 @@ public static IEnumerable<FileSystemInfo> FilesAndDirectories(DirectoryInfo work
public static IEnumerable<FileSystemInfo> FilesAndDirectories(DirectoryInfo workingDirectory, string pattern, GlobOptions options) =>
workingDirectory.Traverse(pattern, !options.HasFlag(GlobOptions.CaseInsensitive), true, true);

private static int GetTruncateLength(FileSystemInfo directoryInfo)
{
Console.WriteLine(Path.DirectorySeparatorChar);
Console.WriteLine(directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString()));
return directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString())
private static int GetTruncateLength(FileSystemInfo directoryInfo) =>
directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString())
? directoryInfo.FullName.Length
: directoryInfo.FullName.Length + 1;
}
}
}
2 changes: 2 additions & 0 deletions src/Glob/Glob.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<PackageTags>C#;glob;minimatch</PackageTags>
<Description>A C# Glob library for .NET and .NET Core.</Description>
<PackageReleaseNotes>
### Fixed
- Issue #55: Remove debug prints
</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/kthompson/glob/</PackageProjectUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/kthompson/glob/master/LICENSE</PackageLicenseUrl>
Expand Down

0 comments on commit 711b329

Please sign in to comment.