google-code-export / fanart-handler

Automatically exported from code.google.com/p/fanart-handler
1 stars 0 forks source link

Upgrade error due to folder not existing #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Im not sure why, but for some reason I was missing the movie folder in my Skin 
Fanart directory (maybe I manually deleted this but cant remember).

Anyway, on first launch the plugin attempted to ugprade my previous images to 
new paths but It stopped short because of the movie folder did not exist:

08-Nov-2010 16:02:33 Debug [     DatabaseManager]: 
System.IO.DirectoryNotFoundException: Could not find a part of the path 
'C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\movies'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
   at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)
   at System.IO.DirectoryInfo.GetFiles()
   at FanartHandler.DatabaseManager.MigrateFanart(String pathOld, String pathNew)
   at FanartHandler.DatabaseManager.MigrateFanart()
   at FanartHandler.DatabaseManager.UpgradeDBMain() 

I ended up having to move my music images to the scrape/music folder manually.

Can you put a check if exists on the directory before trying to migrate? Just 
make it a little more fool proof.

Original issue reported on code.google.com by damien.haynes@gmail.com on 8 Nov 2010 at 5:10

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by markus_e...@telia.com on 20 Nov 2010 at 5:59

GoogleCodeExporter commented 9 years ago

Original comment by markus_e...@telia.com on 23 Mar 2011 at 12:04