Skip to content

Commit

Permalink
[fix] FileUtil when path have /./ (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
basstal authored Aug 23, 2024
1 parent 863cce5 commit 3f4cf81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Luban.Core/Utils/FileUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public static void DeleteDirectoryRecursive(string rootDir)

public static bool IsIgnoreFile(string file)
{
file = Path.GetFullPath(file);
return file.Split('\\', '/').Any(fileName => fileName.StartsWith(".") || fileName.StartsWith("_") || fileName.StartsWith("~"));
}

Expand Down

0 comments on commit 3f4cf81

Please sign in to comment.