git: filling empty dirs: don't bother removing the .empty

This commit is contained in:
Hylke Bons 2011-09-22 20:11:08 +01:00
parent 138c55ba91
commit 62b0bc2524

View file

@ -522,12 +522,8 @@ namespace SparkleLib {
FillEmptyDirectories (child_path);
}
if (Directory.GetFiles (path).Length == 0) {
if (Directory.GetFiles (path).Length == 0)
File.Create (Path.Combine (path, ".empty")).Close ();
} else if (File.Exists (Path.Combine (path, ".empty"))) {
File.Delete (Path.Combine (path, ".empty"));
}
}