XronTrix10 / Telegram-Leecher

A Pyrogram based Telegram Bot to Transfer Files / Folders to Telegram and Google Drive With Multi-Functionality Using Google Colaboratory
https://t.me/Colab_Leecher
GNU General Public License v3.0
243 stars 210 forks source link

Error Upload Directly From Drive ( Dir-Leech ) #13

Open tuthanika opened 7 months ago

tuthanika commented 7 months ago

After using "Upload Directly From Drive (Dir-Leech)" once, if continue to another folder will receive an error.

For example: Folder 1: /content/drive/Shareddrives/tuthanika/1 Folder 2: /content/drive/Shareddrives/tuthanika/2

Bot running with Folder 1 complete, run new command dir_leech with Folder 2, will error. At this time, the bot cann't operate even if using a direct link.

ERROR:pyrogram.dispatcher:[Errno 17] File exists: '/content/drive/Shareddrives/tuthanika/1' Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/content/Telegram-Leecher/colab_leecher/main.py", line 347, in handle_options await BOT.TASK File "/content/Telegram-Leecher/colab_leecher/utility/task_manager.py", line 98, in taskScheduler makedirs(Paths.down_path) File "/usr/lib/python3.10/os.py", line 225, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: '/content/drive/Shareddrives/tuthanika/1'

XronTrix10 commented 5 months ago

@tuthanika Thank you for sharing the error message. I will definitely look into this error. You are always welcome for contribution and it will be highly appreciated 😀