files-community / files-community/Files

Bug: Infinite file creation loop (0 KB files) when copying wsl files to hard disk or usb

Open
#18,294 4 comments 0 reactions 0 assignees View on GitHub
area - file operations
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 7m
Merged PRs (30d)
62

Description

### Description

Hello, I encountered a major bug with Files v4.0.34.0 on Windows 11.

When I try to copy a file from my WSL environment (Ubuntu) to a USB drive using the Files interface, the application gets stuck in an infinite loop. It created 6,354 empty files (0 KB) on my USB drive due to an Administrator/UAC permission conflict. I had to restart my computer to stop the process. It appears that Files does not handle the “Access Denied” error correctly and keeps retrying.


Bonjour, j'ai rencontré un bug important avec Files v4.0.34.0. version Windows 11

Lorsque j'essaie de copier un fichier depuis mon environnement WSL (Ubuntu) vers une clé USB via l'interface de Files, l'application entre dans une boucle infinie. Elle a créé 6354 fichiers vides (0 ko) sur ma clé USB à cause d'un conflit d'autorisations Administrateur/UAC. J'ai dû redémarrer mon ordinateur pour arrêter le processus. Il semble que Files ne gère pas correctement l'erreur « Accès refusé » et continue de réessayer.

### Steps To Reproduce

1. Navigate to a folder in your WSL distribution (for example, \\wsl.localhost\Ubuntu\home\user).
2. Select a file (for example, an .xsl or .liq file).
3. Copy it to a location where you want to save the file, then
4. Copy and paste it to a USB drive (FAT32 or NTFS).
5. You may notice that the application does not handle administrator/UAC permissions correctly.
6. An infinite loop is triggered, creating thousands of 0 KB copies of the file until the application or system is restarted.


1. Accédez à un dossier de votre distribution WSL (par exemple, \\wsl.localhost\Ubuntu\home\user).
2. Sélectionnez un fichier (par exemple, un fichier .xsl ou .liq).
3. Copier le sur un site pour mettre un fichiers puis
4. Copiez-le et collez-le sur une clé USB (FAT32 ou NTFS).
5. Vous Constater peut être que l'application ne gère pas correctement l'autorisation d'administrateur/UAC.
6. une boucle infinie se déclenche, créant des milliers de copies de 0 ko du fichier jusqu'à ce que l'application ou le système soit redémarré.

### Files Version

4.0.34.0

### Windows Version

10.0.26200.8037

### User ID

bc84aac8-24c1-4f42-86ad-08162d53005e

### Log File

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.