this post was submitted on 17 Aug 2024
276 points (94.2% liked)

Technology

58115 readers
4389 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 1 month ago* (last edited 1 month ago) (2 children)

Linux might have a similar file name restriction, but what's more important IMO, is the obnoxious file path restrictions NTFS has.

Naming a file less than 255 chars is a lot easier than keeping its path down.

Limiting file name is one thing, but dealing with limited path lengths when trying to move a custies folder full of subdir on subdirs is obnoxious when the share name its being transferred to makes it just too long.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago) (1 children)

Can't you work around that with the extended length prefix of \\?\ (\\?\C:\whateverlongpathhere\)? Though admittedly, it is a pain in the ass to use.

(edited for clarity and formatting)

[–] [email protected] 3 points 1 month ago (1 children)
[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

That would unfortunately require me to edit GPO I have non control over. I could temporarily knock it out with regedit but I don't know if it'd be tossed next gpupdate, I'd have to check.

[–] [email protected] 1 points 1 month ago

Bummer. The '\?' prefix will work regardless of registry setting, though it's a pain to remember each time.

[–] [email protected] -2 points 1 month ago (1 children)

True. Problem is, moving from more restricted system to less restricted system is a breeze, but painful otherwise. Linux is in a position where it would benefit from any little thing. People trying to switch to Linux will find path length feels like an upgrade, but file name limitation is clearly a downgrade.

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (1 children)

What are you guys naming your files anyways? No more than four words in lower snake case, as the Machine Spirit intended.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

I guess something like ようこそ『追放者ギルド』へ ~無能なSランクパーティがどんどん有能な冒険者を追放するので、最弱を集めて最強ギルドを創ります~ 1 (ドラゴンコミックスエイジ) - 荒木 佑輔.epub - 92 characters, but 246 bytes. Where on Windows this file hits 35% of the limit, on Linux it hits 96%.

The file is not some rare case. It's from a torrent, uploaded somewhere just today. There are tons of files like this with slightly or much longer names. As of 2024, they can't be served by Linux. Not in a pure file form, that is.

[–] [email protected] 1 points 1 month ago

Yeah I suppose that would get in the way.