Generating Project Files: System.IO.IOException

I realized something was wrong with my project when trying to do a packaged build.
The following exception was thrown:

Unhandled exception: System.IO.IOException: The file or directory is corrupted and unreadable.
I then deleted the saved, intermediate, etc, folders in order to recreate the project files. Now the same exception is thrown when trying to create the project files. I’m kind of starting to worry I broke my project.

Any clues where this comes from?

Here’s the relevant extract from the log:

UnrealBuildTool.Main: ERROR: Unhandled exception: System.IO.IOException: The file or directory is corrupted and unreadable.
UnrealBuildTool.Main:        
UnrealBuildTool.Main:           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
UnrealBuildTool.Main:           at System.IO.FileSystemEnumerableIterator`1.CommonInit()
UnrealBuildTool.Main:           at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
UnrealBuildTool.Main:           at System.IO.Directory.EnumerateFiles(String path)
UnrealBuildTool.Main:           at Tools.DotNETCommon.DirectoryReference.<EnumerateFiles>d__27.MoveNext() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\DotNETCommon\DotNETUtilities\DirectoryReference.cs:line 336
UnrealBuildTool.Main:           at UnrealBuildTool.SourceFileSearch.FindFilesInternal(DirectoryReference Directory, String[] ExcludedDirectorySuffixes, List`1 FoundFiles, HashSet`1 SearchedDirectories) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileSearch.cs:line 87
UnrealBuildTool.Main:           at UnrealBuildTool.SourceFileSearch.FindFilesInternalRecursive(DirectoryReference Directory, String[] ExcludedDirectorySuffixes, List`1 FoundFiles, HashSet`1 SearchedDirectories) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileSearch.cs:line 100
UnrealBuildTool.Main:           at UnrealBuildTool.SourceFileSearch.FindFilesInternalRecursive(DirectoryReference Directory, String[] ExcludedDirectorySuffixes, List`1 FoundFiles, HashSet`1 SearchedDirectories) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileSearch.cs:line 100
UnrealBuildTool.Main:           at UnrealBuildTool.SourceFileSearch.FindFilesInternalRecursive(DirectoryReference Directory, String[] ExcludedDirectorySuffixes, List`1 FoundFiles, HashSet`1 SearchedDirectories) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileSearch.cs:line 100
UnrealBuildTool.Main:           at UnrealBuildTool.SourceFileSearch.FindFiles(DirectoryReference DirectoryToSearch, List`1 SubdirectoryNamesToExclude, Boolean SearchSubdirectories, HashSet`1 SearchedDirectories) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileSearch.cs:line 71
UnrealBuildTool.Main:           at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllModules(List`1 AllGames, Dictionary`2 ProgramProjects, List`1 ModProjects, List`1 AllModuleFiles, Boolean bGatherThirdPartySource) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 1922
UnrealBuildTool.Main:           at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 878
UnrealBuildTool.Main:           at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 172
UnrealBuildTool.Main:           at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 477

Edit: It seems that this is not project related. I tried creating the project files with a different project and I get the same error message. Is this a windows-related thing?

This seems to have been due to some problem with my disk. I let windows repair it and now the problem is gone.