Error cleaning up images

Issue #1709 new
Former user created an issue

6.10 Official Release:

When I attempt to clean up unused images, after the progress bar gets about halfway done, I get an error message with the following:

System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.InternalGetDirectoryName(String path) at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) at (Game , String , List1 , Boolean ) at LaunchBox.Data.Game.GetResourceFilesFromFolder(String folder, List1 results, Boolean imagesOnly) at (Game , String ) at LaunchBox.Data.Game.GetImageFilePaths(String imageType) at (CleanUpImagesForm , Object , DoWorkEventArgs ) at LaunchBox.Forms.CleanUpImagesForm.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

It happens anytime I try to clean up images.

Comments (2)

  1. Jason Carr repo owner

    Bah, this is Microsoft's irritating path length Windows bug. It happens when a path is too long; there's no way to properly fix it other than to make the file structure more shallow. Looks like I need to fix this to not give up in that situation though; on my list.

  2. DudeInBasement

    Just wanted to chime in that I've been receiving this too for quite some time. Still receiving this on 7.4 official.

  3. Log in to comment