Skip to content

Bug: The first file and directory names to exceed the 260-character MAX_PATH limit appear truncated. #17133

Open
@RokeJulianLockhart

Description

@RokeJulianLockhart

Description

20250516-1635-45.6671105.mp4

As the aforementioned demonstrates, accessing a path whose length exceeds MAX_PATH (ascertained by attempting to access \\wsl.localhost\fedoraremix\mnt\rjlb_data\@{'Name'='Entities'}#.dir\@{'Status'='Commenced'; 'Name'='In Use'}#.dir\@{'Person'='Beedell'; 'Identifier'='S21AIB'}#.dir\@{'Name'='Entity-Specific'}#.dir\@{'Person'='Roke'; 'Identifier'='S1EV2L'}#.dir\@{'Name'='Technical'}#.dir via a BTRFS wsl --mount) causes a network resource access error:

Image

Steps To Reproduce

  1. Create the undermentioned structure:

    1. #!/usr/bin/env sh
      sudo lsblk -f
    2. NAME   FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
      sda
      sdb
      sdc                                           [SWAP]
      sdd                             954.8G     0% /mnt/wslg/distro
                                                    /
      sde
      ├─sde1
      ├─sde2
      ├─sde3
      └─sde4                            1.4T    24% /mnt/test
      sdf
      └─sdf1                          184.3G    90% /mnt/rjlb_data

    To do so, create a BTRFS-formatted filesystem on a blank storage device, then mount it:

    1. #!/usr/bin/env pwsh
      #Requires -PSEdition Core
      If ($IsWindows) {
      	sudo wsl --mount \\.\PHYSICALDRIVE1 --bare
      }
    2. #!/usr/bin/env sh
      sudo lsblk -f
      	# Utilise the output to confirm that the *device* has been mounted into `wsl`, then set its path as `$dev_id`, and define a mount point at `$path`.
      sudo mount -t btrfs /dev/$dev_id /mnt/$path
  2. When mounted, create the hideous path aforementioned. If you attempt to access it via the Files GUI, it should display the aforementioned error modal.

This probably isn't a minimal reproduction list, because I've yet to narrow the cause.

Files Version

3.9.9.0

Windows Version

10.0.26120

User ID

353b71b8-86f9-4fe0-ac0e-e1da114b9349

Log File

debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions