Skip to content

Commit ac9a184

Browse files
Update query/__init__.py
Removed a conditional statement in `QueryHandler._handle_dir_query` method restricting recurisve deletion operation upon directories which has now been fixed.
1 parent 6df3679 commit ac9a184

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fise/query/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ def _handle_dir_query(self, initials: QueryInitials) -> pd.DataFrame | None:
125125
Parses and handles the specified directory search/delete query.
126126
"""
127127

128-
if initials.operation.operation == "remove" and initials.recursive:
129-
raise QueryParseError(
130-
"Recursive deletion operation cannot be performed on directories."
131-
)
132-
133128
parser = DirectoryQueryParser(
134129
self._query[self._ctr :], initials.operation.operation
135130
)

0 commit comments

Comments
 (0)