DEV Community

Cover image for Failed to create data directory
CoderLegion
CoderLegion

Posted on • Originally published at kodblems.com

Failed to create data directory

Sometimes errors occur when creating or copying files or folders to external memory, such as a USB stick or external hard drive. Errors such as "The file or folder cannot be moved", "The directory or file cannot be created", or "The directory or file cannot be created" are closely related. It is the error with code 0X80070052 and that we can quickly solve.

Methods To Remove Directory Error
Below we explain the possible causes and solutions for when error 0X80070052 appears in Windows.

Check storage errors
Perhaps our storage drive, external hard drive or pen drive has some corruption problems in its file system. We should not worry, but we must correct it soon to avoid losing our data.
For this, we use the "Error Checking" tool that we explain how it also works to correct the error 0x80071AC3.
Running this tool may fix all the errors with the files on this storage unit.

Too many files
The error 0X80070052 occurs because we have many files in the root or leading directory of the unit.
To do this, we have to better organize the files in a folder and not leave so many files in the main folder of the pen drive or external hard drive.

It will prevent the error from occurring, and we will be able to move or create new files and folders
without problems.

Scan for Viruses
Finally, if errors continue to occur, perhaps a virus is causing the problems. It is common for pen drives to be infected since they are connected to other computers where sometimes there are viruses prepared to spread through the drives that we connect.

To eliminate the possibility, we must resort to the antivirus that we have installed and analyze the folders that are on the Pendrive. Usually, there is an option within the antivirus interface or by right-clicking on the Pendrive in Computer and looking for the option to scan with the antivirus.

Top comments (0)