Remove .empty files when they are no longer needed
This commit is contained in:
parent
1c404cc82d
commit
2f492c00f8
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue