Skip to content

Commit

Permalink
fix delete dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Dec 12, 2024
1 parent 1e0c7d9 commit c7d0946
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ async def delete_file(

async with self.engine.acquire() as conn:
file_fmd = await get_fmd(conn, file_id)
if file_fmd and not file_fmd.is_directory:
if file_fmd:
await db_file_meta_data.delete(conn, [file_id])

enclosing_dir_file_id = await get_directory_file_id(conn, file_id)
Expand Down

0 comments on commit c7d0946

Please sign in to comment.