lemmy.kfed.org
  • Communities
  • Create Post
  • Support Lemmy
  • Search
  • Login
  • Sign Up
mugdad1@lemm.ee to linuxmemes@lemmy.worldEnglish · 6 months ago

Specifying file paths

29
501

Specifying file paths

mugdad1@lemm.ee to linuxmemes@lemmy.worldEnglish · 6 months ago
29

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

You must log in or register to comment.
  • leo85811nardo@lemmy.world
    61·
    6 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
      62·
      6 months ago

      I think you mean users\developers

      • intensely_human@lemm.ee
        71·
        6 months ago

        DIR 🤪

    • Wispy2891@lemmy.world
      3·
      6 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
    28·
    6 months ago

    Windows just wants to help you learn about escape characters

    • the_beber@lemm.ee
      4·
      6 months ago

      \

  • kippinitreal@lemmy.world
    181·
    6 months ago

    CR LF

    • OrekiWoof@lemmy.ml
      16·
      6 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
        14·
        6 months ago

        Also whoever decided to do strings in WTF-16

  • ZeroOne@lemmy.world
    15·
    6 months ago

    Ahhhh I get it

    • justme@lemmy.dbzer0.com
      3·
      6 months ago

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

  • ch00f@lemmy.world
    141·
    6 months ago

    Now do a loss crossover.

    • muhyb@programming.dev
      6·
      6 months ago

      I I ı

      I I I _

      • brachypelmasmithi@lemm.ee
        4·
        6 months ago

        ::|:;

  • leaky_shower_thought@feddit.nl
    12·
    6 months ago

    you lose a hand specifying linux file paths?

    • Sonotsugipaa@lemmy.dbzer0.comEnglish
      8·
      6 months ago

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

    • intensely_human@lemm.ee
      5·
      6 months ago

      No! That’s impossible!

  • FartsWithAnAccent@fedia.io
    91·
    6 months ago

    Linux species file paths?

    Edit: Mac does too, they just hide it.

    • Possibly linux@lemmy.zipEnglish
      13·
      6 months ago

      You guys have files?

      • mugdad1@lemm.eeOPEnglish
        12·
        5 months ago

        deleted by creator

        • herrvogel@lemmy.world
          12·
          6 months ago

          Dad, am I a file?

          • mugdad1@lemm.eeOPEnglish
            4·
            5 months ago

            deleted by creator

          • pemptago@lemmy.mlEnglish
            4·
            6 months ago

            .dna files

          • ColdWater@lemmy.ca
            1·
            6 months ago

            Technically yes

          • HStone32@lemmy.world
            1·
            6 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.

  • Possibly linux@lemmy.zipEnglish
    6·
    6 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
    3·
    6 months ago

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

    • mugdad1@lemm.eeOPEnglish
      1·
      5 months ago

      deleted by creator

  • renegadespork@lemmy.jelliefrontier.netEnglish
    3·
    6 months ago

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

  • intensely_human@lemm.ee
    2·
    6 months ago

    All too easy

  • HStone32@lemmy.world
    2·
    6 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.

  • bestboyfriendintheworld@sh.itjust.worksEnglish
    2·
    5 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.

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: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

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

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

  • 30 users / day
  • 2.45K users / week
  • 6.28K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 26.3K subscribers
  • 1.59K Posts
  • 62.2K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • UI:
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org