File or directory is corrupt

If you are having a problem using Vault, post a message here.
Post Reply
rich.stafford
Posts: 1
Joined: Wed Jun 14, 2023 1:35 pm

File or directory is corrupt

Post by rich.stafford » Fri Jan 09, 2026 10:40 am

We are getting a 'file or directory is corrupt' message for one of the areas of our repository. How do we repair this?

This is the log from our automated fetch before a build.

Thanks,
Rich Stafford
Chief Scientist
eQuorum Corporation

<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 181.5620
<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 54.5620
<vault>
<error>
<exception>System.IO.IOException: The file or directory is corrupted and unreadable.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
at VaultClientOperationsLib.ClientInstance.CreateDiskFoldersForNonWorkingFolder(VaultClientFolderColl folders, String ancestorFullPath, String ancestorDiskPath)
at VaultClientOperationsLib.ClientInstance.GetToNonWorkingFolder(VaultClientFolder folder, Boolean recursive, Boolean forceLatest, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorDiskPath, OverwritePrompt PromptData)
at VaultClientIntegrationLib.GetOperations.ProcessCommandGetToLocationOutsideWorkingFolder(String[] objectPaths, GetOptions getOptions, String destPath, VaultDateTime beginDate, VaultDateTime endDate)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>Result -1, elapsed time 30.2030
<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 10.4850
<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 22.1410
<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 615.1400
<vault>
<result>
<success>True</success>
</result>
</vault>Result 0, elapsed time 20.4370

Tonya
Posts: 962
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Re: File or directory is corrupt

Post by Tonya » Mon Jan 12, 2026 9:15 am

Hello,

The error "System.IO.IOException: The file or directory is corrupted and unreadable." is technically a Windows error. When doing some very elementary research it states "this error means Windows can't access a file or folder due to disk errors, malware, or sudden shutdowns, requiring you to run the chkdsk command as administrator".

Are you still experiencing the issue?

Thanks,

Tonya

Post Reply