larsfroelich / unifi-protect-bulk-download

Bulk video downloader for ubiquiti unifi protect video surveillance systems
GNU General Public License v3.0
17 stars 3 forks source link

Failed to create file, No such file or directory #5

Open nmalinoski opened 5 months ago

nmalinoski commented 5 months ago

Attempting to run the Docker variant on a Windows 10 host with Docker Desktop 4.31.1. Can't seem to shake this error when attempting to download a selection with the daily and rotating options. Given the timing, it seems like the file is successfully downloaded, but then throws this error when trying to write it to the host.

Downloading rotating video for camera 'Front Door' (file path: X:/Media/Protect Backups/2024-04-01-00-Front Door-rotating.mp4)
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/unifi_protect-0.5.2/src/api/download_footage.rs:64:63:
Failed to create file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Not sure if it's the Windows-style paths, the fact that the camera name and path have spaces, or what.

MikeTango commented 3 weeks ago

I had luck by removing the slash in front of the folder "/Download" to "Download", maybe add a slash or quote marks for the syntax