Remove .empty files when they are no longer needed

This commit is contained in:
Hylke Bons 2011-09-14 20:12:56 +02:00
parent 1c404cc82d
commit 2f492c00f8

View file

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