Skip to content

Commit c2bf4dd

Browse files
committed
new release version
1 parent c86b1b8 commit c2bf4dd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ configure(allprojects){
2525
testNgVersion = '7.7.0'
2626
loggerVersion = '2.24.3'
2727
jnaVersion = '5.3.1'
28-
version '3.2.3'
28+
version '3.2.4'
2929
}
3030
group "$groupName"
3131

src/main/java/com/automationanywhere/botcommand/actions/device/DeleteFilesFolders.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,15 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
259259
return FileVisitResult.SKIP_SUBTREE; // Don't process contents of skipped directories
260260
}
261261

262-
// Check if this directory meets the age criteria for deletion
262+
// Check if directory meets age criteria for deletion regardless of recursive setting
263+
// The actual deletion will be controlled by selectMethod parameter
263264
if (meetsDeletionCriteria(attrs)) {
264265
LOGGER.info("Marking directory for potential deletion: " + dir);
265266
directoriesToDelete.add(dir);
266267
}
267268

268-
// If not recursive, skip subdirectories (unless it's the base path)
269-
if (!recursive && !dir.equals(basePath)) {
269+
// If not recursive, skip traversing into subdirectories after processing current directory
270+
if (!recursive) {
270271
return FileVisitResult.SKIP_SUBTREE;
271272
}
272273

0 commit comments

Comments
 (0)