Could not find a part of the path

Upgraded to v2 of the script and since then I haven’t been able to get a large number of episodes to transfer from my working directory into my Media system.

It appears that any path with a space in it, or other special character (such as a comma) is giving the error.

Below is a part of my error log. NzbDrone Ver. 2.0.0.70

13-7-30 21:31:47.8|Warn|ImportApprovedEpisodes|Couldn’t import episode H:\SABnzbd\downloads\complete\TV\The Daily Show 2013 07 25 Bob Bradley 720p HDTV x264-2HD\the.daily.show.2013.07.25.bob.bradley.720p.hdtv.x264-2hd.mkv

System.IO.DirectoryNotFoundException: Could not find a part of the path ‘T:\Television\Daily Show with Jon Stewart, The\Season 18’.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path)
at NzbDrone.Common.DiskProvider.CreateFolder(String path) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Common\DiskProvider.cs:line 168
at NzbDrone.Core.MediaFiles.MoveEpisodeFiles.MoveFile(EpisodeFile episodeFile, String destinationFilename) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 100
at NzbDrone.Core.MediaFiles.MoveEpisodeFiles.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 78
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 47
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 70

13-7-30 21:31:49.4|Warn|ImportApprovedEpisodes|Couldn’t import episode H:\SABnzbd\downloads\complete\TV\The Daily Show 2013 07 29 Mark Leibovich 720p HDTV x264-2HD\the.daily.show.2013.07.29.mark.leibovich.720p.hdtv.x264-2hd.mkv

System.IO.DirectoryNotFoundException: Could not find a part of the path ‘T:\Television\Daily Show with Jon Stewart, The\Season 18’.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path)
at NzbDrone.Common.DiskProvider.CreateFolder(String path) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Common\DiskProvider.cs:line 168
at NzbDrone.Core.MediaFiles.MoveEpisodeFiles.MoveFile(EpisodeFile episodeFile, String destinationFilename) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 100
at NzbDrone.Core.MediaFiles.MoveEpisodeFiles.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 78
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 47
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload) in m:\buildAgent2_work\bc9a5cca09497250\zbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 70

Does: T:\Television\Daily Show with Jon Stewart, The\Season 18 actually exist on disk?

Folders with spaces work (virtually every folder I have contains a space), I just tested with a comma and it the file sorted without issue.

Is T:\ a mapped network drive and are you running as a service?

T:\ is a mapped drive, the directory exists.
It is running as a Service, and I tried with out a service.
Also the service is running as the user with the mapped drive.

Mapped network drives with a service really don’t work very well, some people are able to get it going after changing the user, but that doesn’t always work either.

When you first added the show I assume you weren’t running it as a service, or you added the series path directly, but in either case running it as your user (not as a service) should have corrected that issue. The other option is to use a UNC path (\\servername\share) instead of the mapped drive.

It worked in the old release, and up to the bugged release of v2

testing out “startup” method instead

Another small bug
if you put in http:// as your host, it gives errors in the logs that http://http:// couldn’t be found. May be a good client check thing to fix.

okay moving it to a Startup item works.

@devanchya said:
Another small bug
if you put in http:// as your host, it gives errors in the logs that http://http:// couldn’t be found. May be a good client check thing to fix.

Putting that where?