changing directory in different programming languages

changing directory in different programming languages.

in this thread, show us how to change directory in your preferred programming language
>example:
from os import *

curdir = getcwd()
comdir = (curdir + "\example folder")
chdir(comdir)

A Conspiracy Theorist Is Talking Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

A Conspiracy Theorist Is Talking Shirt $21.68

  1. 2 years ago
    Anonymous

    cd %userprofile%

  2. 2 years ago
    Anonymous

    cd /example/folder

    • 2 years ago
      Anonymous

      isn't that the same thing as

      cd %userprofile%

      • 2 years ago
        Anonymous

        its not

  3. 2 years ago
    Anonymous

    This code is misleading in so many ways, it's great.
    import System.Posix.Directory
    main = getWorkingDirectory >>= changeWorkingDirectory . (++ "/test")

    • 2 years ago
      Anonymous

      why do you want to over complicate things? it's much more simpler and easier to use

  4. 2 years ago
    Anonymous

    you foot gays are the worst. all you perverts will be stuffed back into the closet by the time the decade ends. this is the truth.

    • 2 years ago
      Anonymous

      >you foot gays are the worst
      What the frick does this thread has to do with gnome???

    • 2 years ago
      Anonymous

      Your opinion is less popular than you think.

      • 2 years ago
        Anonymous

        Really?

  5. 2 years ago
    Anonymous

    please don't step on him

  6. 2 years ago
    Anonymous

    /example/folder

    • 2 years ago
      Anonymous

      >example/folder
      That's just a directory you dumbfrick

      • 2 years ago
        Anonymous
        • 2 years ago
          Anonymous

          wut shell?

          • 2 years ago
            Anonymous

            nta but it looks like zsh

          • 2 years ago
            Anonymous

            >nta
            What's nta?

          • 2 years ago
            Anonymous

            nta, but not that anon I presume

          • 2 years ago
            Anonymous

            yeah, i know that. what i want to know is want "nta" means

        • 2 years ago
          Anonymous

          It's not a code dammit. It's just a command that changes directory

  7. 2 years ago
    Anonymous

    >us
    Not doing your homework

    • 2 years ago
      Anonymous

      >Not doing your homework
      It's a request, not a homework

  8. 2 years ago
    Anonymous

    system("cd blabla/");

    • 2 years ago
      Anonymous

      >system("cd blabla/");
      Isn't that a python code that uses cmd to change directory?

  9. 2 years ago
    Anonymous

    (uiop:chdir "exampledir")

    • 2 years ago
      Anonymous

      What programming language is this?

      • 2 years ago
        Anonymous

        Lisp

  10. 2 years ago
    Anonymous

    hot

    • 2 years ago
      Anonymous

      >hot
      ....Really

      • 2 years ago
        Anonymous

        yes

  11. 2 years ago
    Anonymous

    (chdir "/home/op/gay_porn/")

    • 2 years ago
      Anonymous

      (uiop:chdir "exampledir")

      why do these two replies use brackets instead of just typing the code?

      • 2 years ago
        Anonymous

        that's the code newbie-kun

        • 2 years ago
          Anonymous

          >that's the code newbie-kun
          Read
          >use brackets

          • 2 years ago
            Anonymous

            The parentheses are part of the code, it won't work otherwise
            It's Lisp

  12. 2 years ago
    Anonymous

    #include <unistd.h>
    syscall(80, "example folder");

    • 2 years ago
      Anonymous

      ahhh fellow C++/C chad

  13. 2 years ago
    w7-890

    based basedtan poster SOOT come here

    • 2 years ago
      Anonymous

      back to the sharty

      >based basedtan poster SOOT come here
      oh please frick off back to soijak website you fricking worthless basedjak-spamming subhumans

      • 2 years ago
        w7-890

        >he hates jakkie chan
        are you the homosexual who reported the libbie VN thread FRICK YOU seagull

  14. 2 years ago
    Anonymous

    back to the sharty

    • 2 years ago
      Anonymous

      >>>/qa/
      OH wait, /qa/ lost lmaooooo

  15. 2 years ago
    Anonymous

    std::env::set_current_dir("/new/path")?;

    • 2 years ago
      Anonymous

      Is this line of code is C or C++

      • 2 years ago
        Anonymous

        It's Rust, you can tell by the postfix question mark (which makes the function return an error on failure).
        C doesn't have ::.

  16. 2 years ago
    Anonymous

    import "directoryChanger"
    import "directoryGetter"
    if main == "___main___/"
    changeDir($pwd,"/folder").then(floor()).style

Your email address will not be published. Required fields are marked *