retiolus
creator
link
fedilink
English
161Y

It’s quite strange, I’ve been downloading torrents for more years than I can count, and I upload them from time to time, and I’ve always had the worry myself of how to name torrents: with dots? underscores? dashes? (although with spaces is definitely not an option).

I’ve even asked the questions on several forums and upload sites, read tutorials on these same sites etc and every time I’ve asked the answer has been: THERE IS NO STANDARD, even on the tutorials, I’ve never seen anything mentioned such a thing.

All this to say that I’m making a meme, and after so many years, this is the first time I’ve heard of a Warez scene, and several times in the same comments!, curious, isn’t it? I wish I’d heard about it before.

Scene has standards. You don’t have to be scene to use scene naming standards. https://scenerules.org

Clearly the best option then is to just use some of each. Like this: “MovieTitle-2000.Your_mom h.265”

@Socsa@sh.itjust.works
link
fedilink
English
141Y

You should know that in most filesystems that are not NTFS, spaces in file names are not well supported.

Can you give examples? Linux and Mac have no real issues as far as I’m aware. Nor exFAT or FAT32

@bam13302@ttrpg.network
link
fedilink
English
10
edit-2
1Y

The problem is really that space is an argument separator, so to safely handle filenames with spaces you need to handle them special, either by escaping them, quoting the entire thing. This means that the filename with spaces can’t be just copy pasted wherever you want, you have handle them special. It adds complications that are resolved by just using a separator that isnt used for other things, like underscore, or dash. Dot I also don’t like as much as it’s used as a separator for extensions, but that’s a far easier problem to handle by just ignoring all but the last dot, leaving only one really bad edge case (a file that does not have an extension, that uses dot separator in its filename having the filesystem imply a wrong extension.

@gayhitler420@lemm.ee
link
fedilink
English
01Y

I’m with the person you’re replying to, what’s an example? I haven’t had a problem working with filenames with spaces in at least ten years on windows, Linux or Mac…

retiolus
creator
link
fedilink
English
41Y

Have you ever written a program or simply used a terminal?

@gayhitler420@lemm.ee
link
fedilink
English
01Y

Escape characters and autocomplete exist.

It’s also really good practice to account for weird characters in programs and shell scripts you write because then you don’t have injection vulnerabilities or unicode problems.

Seriously, what’s an example of spaces in filenames causing a problem?

@bam13302@ttrpg.network
link
fedilink
English
4
edit-2
1Y

for f in *.txt; do cat $f; done

Will error for example. It works fine for filenames without space, but if the filename has space in it, it will be interpreted wrong. But if your testing batch doesn’t have spaces in the filename, you won’t see the issue until it’s used on a file that does. Note ‘cat’ is a placeholder, any function/script that can be used on a file here will have the same issue.

Something similar to that caught me last week while I was unzipping multiple mods in bulk for a game.

@gayhitler420@lemm.ee
link
fedilink
English
21Y

I’m not at a bash terminal, but I think “$f” fixes that. I’ll look tonight.

That’s a problem with the shell though, not the filesystem. It doesn’t matter which files filesystem you’re using; most interactive shells use spaces as token separators and therefore spaces in filenames need to be enclosed in quotes or escaped.

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
!piracy@lemmy.dbzer0.com
Create a post
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don’t request invites, trade, sell, or self-promote

3. Don’t request or link to specific pirated titles, including DMs

4. Don’t submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

  • 1 user online
  • 108 users / day
  • 272 users / week
  • 1K users / month
  • 3.5K users / 6 months
  • 1 subscriber
  • 3.4K Posts
  • 82.2K Comments
  • Modlog