Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Arrows by any other name

Arrows by any other name

Scheduled Pinned Locked Moved The Lounge
question
18 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    _Maxxx_ wrote:

    e.g. C:\Folder\Directory\myFile.txt

    Path

    _Maxxx_ wrote:

    e.g. myFile.txt

    File or filename

    _Maxxx_ wrote:

    e.g. C:\Folder\Directory

    Folder or directory

    I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

    R Offline
    R Offline
    Rage
    wrote on last edited by
    #7

    Kornfeld Eliyahu Peter wrote:

    Folder or directory

    A good example of nuance I've never really gotten.

    ~RaGE();

    I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

    Kornfeld Eliyahu PeterK P 2 Replies Last reply
    0
    • R Rage

      Kornfeld Eliyahu Peter wrote:

      Folder or directory

      A good example of nuance I've never really gotten.

      ~RaGE();

      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

      Kornfeld Eliyahu PeterK Online
      Kornfeld Eliyahu PeterK Online
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #8

      Originally folder is a logical term where used much before computers, where directory is the physical place on the storage and came to use with computers...

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      1 Reply Last reply
      0
      • L Lost User

        what do you call a sting that holds a file path together with the file name itself e.g. C:\Folder\Directory\myFile.txt And what do you call just the file name? e.g. myFile.txt And what about just the name of the folder the file is in? e.g. C:\Folder\Directory I never seem to be consistent - I think we need a new word (or am I missing something?)

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #9

        You forgot relative path, for example: ./bin/debug Marc

        1 Reply Last reply
        0
        • R Rage

          Filepath: C:\Folder\Directory\myFile.txt Filename: myFile.txt Folderpath, or path: C:\Folder\Directory Folder Directory

          ~RaGE();

          I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #10

          Rage wrote:

          Filename:
          myFile.txt

          I would change that slightly: FileName: myFile Complete Filename: myFile.txt

          Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • L Lost User

            what do you call a sting that holds a file path together with the file name itself e.g. C:\Folder\Directory\myFile.txt And what do you call just the file name? e.g. myFile.txt And what about just the name of the folder the file is in? e.g. C:\Folder\Directory I never seem to be consistent - I think we need a new word (or am I missing something?)

            M Offline
            M Offline
            MarkTJohnson
            wrote on last edited by
            #11

            _Maxxx_ wrote:

            And what about just the name of the folder the file is in?

            They aren't folders they are directories. It should still be called FileManager, not Windows' Explorer. A pox upon whoever made those UI decision.

            L 1 Reply Last reply
            0
            • R Rage

              Kornfeld Eliyahu Peter wrote:

              Folder or directory

              A good example of nuance I've never really gotten.

              ~RaGE();

              I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #12

              There is no folder; only directories.

              You'll never get very far if all you do is follow instructions.

              1 Reply Last reply
              0
              • L Lost User

                what do you call a sting that holds a file path together with the file name itself e.g. C:\Folder\Directory\myFile.txt And what do you call just the file name? e.g. myFile.txt And what about just the name of the folder the file is in? e.g. C:\Folder\Directory I never seem to be consistent - I think we need a new word (or am I missing something?)

                J Offline
                J Offline
                Joe Woodbury
                wrote on last edited by
                #13

                In my code, filename means just the filename (and extension); pathname means the entire path including filename. The path is just the path.

                1 Reply Last reply
                0
                • B BobJanova

                  _Maxxx_ wrote:

                  C:\Folder\Directory\myFile.txt

                  filename

                  _Maxxx_ wrote:

                  myFile.txt

                  filename

                  _Maxxx_ wrote:

                  C:\Folder\Directory

                  path The first two are basically the same thing: both of them let you find a file. One is relative and one is absolute but in most cases you don't care about that. I/O methods will accept either and do the right thing. If you do care then I'd call the first either filePath or absoluteFilename.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #14

                  BobJanova wrote:

                  he first two are basically the same thing

                  Nonsense

                  BobJanova wrote:

                  I/O methods will accept either and do the right thing

                  Lordy lord, what sort of systems are you working on?

                  1 Reply Last reply
                  0
                  • M MarkTJohnson

                    _Maxxx_ wrote:

                    And what about just the name of the folder the file is in?

                    They aren't folders they are directories. It should still be called FileManager, not Windows' Explorer. A pox upon whoever made those UI decision.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #15

                    Absolutely. Directories are EXACTLY right, as the directory is jsut a collection of pointers to the files within - whereas the folder metaphor implies the physical existence of the files within the folder, which is drivel and rot. If anything, a disk drive should be a folder, containing directories of files. But we are victims of the dumbing down of It and, in most cases, it doesn't matter to the user who (lets be honest) call their monitor their computer and the computer their hard drive!

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      Absolutely. Directories are EXACTLY right, as the directory is jsut a collection of pointers to the files within - whereas the folder metaphor implies the physical existence of the files within the folder, which is drivel and rot. If anything, a disk drive should be a folder, containing directories of files. But we are victims of the dumbing down of It and, in most cases, it doesn't matter to the user who (lets be honest) call their monitor their computer and the computer their hard drive!

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #16

                      Exactly! Also More Like An Index Or Catalog. A Document May have links From Many Directories. Try That With Folders!!

                      You'll never get very far if all you do is follow instructions.

                      1 Reply Last reply
                      0
                      • L Lost User

                        what do you call a sting that holds a file path together with the file name itself e.g. C:\Folder\Directory\myFile.txt And what do you call just the file name? e.g. myFile.txt And what about just the name of the folder the file is in? e.g. C:\Folder\Directory I never seem to be consistent - I think we need a new word (or am I missing something?)

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #17

                        You call them all a path. Then you have methods to tell you which bits they include. Look at the dot net System.IO.Path namespace. If you can work the word 'Rooted' in there somewhere you are doing really well.

                        1 Reply Last reply
                        0
                        • L Lost User

                          what do you call a sting that holds a file path together with the file name itself e.g. C:\Folder\Directory\myFile.txt And what do you call just the file name? e.g. myFile.txt And what about just the name of the folder the file is in? e.g. C:\Folder\Directory I never seem to be consistent - I think we need a new word (or am I missing something?)

                          D Offline
                          D Offline
                          DOUGLAS O MOEN
                          wrote on last edited by
                          #18

                          pfn - i.e. path file name fn - file name path Examples from function/method declarations:

                              std::string slurp(const std::string aPfn);
                          
                              void A::B::startApp(const char\* app\_fn);   // activate threads
                          
                               void Filter(std::string a\_localAppPfn,    // argv\[0\] - where app resides on this system
                                           std::string a\_peerAppPfn,     // argv\[1\] - where to store app on peer system
                          
                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups