ricardorodrigues-ca / zoom-recording-downloader

Downloads and organizes all cloud recordings from your Zoom Business account
MIT License
124 stars 63 forks source link

[WinError 267] The directory name is invalid #26

Open CodyMoltar opened 1 year ago

CodyMoltar commented 1 year ago

When running the script, it fails with the following error:

Traceback (most recent call last): File "C:\Users\rogie\Desktop\ZOOM-DOWNLOAD\zoom-recording-downloader\zoom-recording-downloader.py", line 291, in <module> main() File "C:\Users\rogie\Desktop\ZOOM-DOWNLOAD\zoom-recording-downloader\zoom-recording-downloader.py", line 267, in main success |= download_recording(download_url, email, filename, foldername) File "C:\Users\rogie\Desktop\ZOOM-DOWNLOAD\zoom-recording-downloader\zoom-recording-downloader.py", line 165, in download_recording os.makedirs(dl_dir, exist_ok=True) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\os.py", line 225, in makedirs mkdir(name, mode) NotADirectoryError: [WinError 267] The directory name is invalid: 'downloads\\Exhibition opening: “Tehno & eko & sistēmas” - 2022.11.26 - 04.08 PM UTC' C:\Users\rogie\Desktop\ZOOM-DOWNLOAD\zoom-recording-downloader>

As you can see I'm running the script on a Windows machine. Not sure where the double '\' comes from.

jcalub-kyna commented 1 year ago

Have this issue on my machine. The issue comes from the zoom title with semicolon / special characters that you can't use when creating a new folder in windows

CodyMoltar commented 1 year ago

Hi, thanks for the reply. I'll try modifying the script to purge any unusable characters!

jcalub-kyna commented 1 year ago

I tried this. Changing the semicolon to space

image

the download is ongoing now

image

CodyMoltar commented 1 year ago

Cool, thanks! For me it was the " that was the culprit I think. Windows shows this when creating a new folder: image

kjarant commented 1 year ago

changed def download_recording(download_url, email, filename, foldername): dl_dir = os.sep.join([os.path.join(DOWNLOAD_DIRECTORY,email), foldername]) for a folder to be created for each user with all the files in that folder. i've got over 2tb to download... image