mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 03:16:25 +02:00
refactor: improve file handling logic in Dropbox and OneDrive connectors to include unsupported file extension information
This commit is contained in:
parent
a624c86b04
commit
aba5f6a124
3 changed files with 16 additions and 12 deletions
|
|
@ -64,8 +64,10 @@ async def get_files_in_folder(
|
|||
)
|
||||
continue
|
||||
files.extend(sub_files)
|
||||
elif not should_skip_file(item):
|
||||
files.append(item)
|
||||
else:
|
||||
skip, _unsup_ext = should_skip_file(item)
|
||||
if not skip:
|
||||
files.append(item)
|
||||
|
||||
return files, None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue