We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1649052 commit 2899271Copy full SHA for 2899271
1 file changed
bin/generate.groovy
@@ -196,22 +196,8 @@ def translateDirectory(templateSubdirectory) {
196
}
197
198
199
-def cleanStaleFiles(directory) {
200
- list = directory == null ? null : directory.listFiles();
201
- if (list == null) return;
202
-
203
- for (File file : list) {
204
- if (file.isDirectory()) {
205
- cleanStaleFiles(file);
206
- } else if (file.isFile() && !knownFiles.contains(file)) {
207
- file.delete();
208
- }
209
210
-}
211
212
try {
213
translateDirectory(templateDirectory);
214
- cleanStaleFiles(new File(outputDirectory));
215
216
catch (Throwable t) {
217
t.printStackTrace(System.err);
0 commit comments