lonestar-lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mugdad1@lemm.ee to linuxmemes@lemmy.worldEnglish · 3 months ago

Specifying file paths

lemmy.ml

message-square
32
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programmerhumor@lemmy.ml
500

Specifying file paths

lemmy.ml

mugdad1@lemm.ee to linuxmemes@lemmy.worldEnglish · 3 months ago
message-square
32
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • programmerhumor@lemmy.ml

cross-posted from: https://lemmy.world/post/25005978

alert-triangle
You must log in or register to comment.
  • leo85811nardo@lemmy.world
    link
    fedilink
    arrow-up
    60
    ·
    edit-2
    3 months ago

    Funny thing is Windows accepts forward slashes as arguments in programs and API for long time. They just refuse to return forward slashes and don’t give users/developer options to do so, so we have to deal with it anyway

    • akilou@sh.itjust.works
      link
      fedilink
      arrow-up
      62
      ·
      3 months ago

      I think you mean users\developers

      • intensely_human@lemm.ee
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        3 months ago

        DIR 🤪

    • Wispy2891@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      screenshot of PowerShell

      On Windows 11 it’s possible to use backslash for path in the terminal. But then it’s windows 11 and their million bugs

  • chicken@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    28
    ·
    3 months ago

    Windows just wants to help you learn about escape characters

    • the_beber@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      \

  • kippinitreal@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    3 months ago

    CR LF

    • OrekiWoof@lemmy.ml
      link
      fedilink
      arrow-up
      16
      ·
      3 months ago

      I hope the file encodings CEO and the line endings CEO trip over something and break their nose

      • Nat (she/they)@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        14
        ·
        3 months ago

        Also whoever decided to do strings in WTF-16

  • ZeroOne@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    3 months ago

    Ahhhh I get it

    • justme@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      Yeah, I only got it after I bumped into it second time

  • ch00f@lemmy.world
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    3 months ago

    Now do a loss crossover.

    • muhyb@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      3 months ago

      I I ı

      I I I _

      • brachypelmasmithi@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        3 months ago

        ::|:;

  • leaky_shower_thought@feddit.nl
    link
    fedilink
    arrow-up
    12
    ·
    3 months ago

    you lose a hand specifying linux file paths?

    • Sonotsugipaa@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      8
      ·
      3 months ago

      If you use the character 0x20 in a file name, yes

    • intensely_human@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      3 months ago

      No! That’s impossible!

  • FartsWithAnAccent@fedia.io
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    3 months ago

    Linux species file paths?

    Edit: Mac does too, they just hide it.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      13
      ·
      3 months ago

      You guys have files?

      • mugdad1@lemm.eeOP
        link
        fedilink
        English
        arrow-up
        12
        ·
        3 months ago

        bro everything is a file

        • herrvogel@lemmy.world
          link
          fedilink
          arrow-up
          12
          ·
          3 months ago

          Dad, am I a file?

          • mugdad1@lemm.eeOP
            link
            fedilink
            English
            arrow-up
            4
            ·
            3 months ago

            yes son

          • pemptago@lemmy.ml
            link
            fedilink
            English
            arrow-up
            4
            ·
            3 months ago

            .dna files

          • HStone32@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 months ago

            I mean, DNA can be stored in a file. Hormones and steroids can be described discretely by chemical composition. And while we still don’t understand how the frontal lobe works, we do understand how brains store, recognize, and recall information, which is the basis for generative AI today.

          • ColdWater@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            3 months ago

            Technically yes

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 months ago

    https://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f

  • MonkderVierte@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    https://github.com/tox-dev/platformdirs

    • mugdad1@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      wtf

  • intensely_human@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    All too easy

  • bestboyfriendintheworld@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 months ago

    Old Mac OS before Mac OS X used : as path separator Macintosh HD:Users:yourUserName:Desktop:My File.txt. It’s still used for AppleScript. Converting from and to POSIX paths using / happens pretty regularly when writing AppleScript nowadays.

    That’s also the reason why : is still an illegal character to use for file names on macOS.

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 months ago

    It’s the Overly-VerboseCommandSyntax in PowerShell that always grinds my gears.

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    I’ve never met anyone who likes the windows shell environment, or uses it by choice. Only people who try very hard to convince themselves UNIX is somehow worse.

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 685 users / day
  • 4.55K users / week
  • 9.54K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 24.9K subscribers
  • 1.62K Posts
  • 89.9K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org