1 Replies - 1015 Views - Last Post: 26 March 2014 - 01:56 AM

#1 Amruta2799   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 16-March 14

What is directory walk?

Posted 25 March 2014 - 11:03 PM


I just came across this term: Directory Walk. Can anyone please explain what that means? Not the implementation, just the concept.

Is This A Good Question/Topic? 0
  • +

Replies To: What is directory walk?

#2 peace_fixation   User is offline

  • D.I.C Head

Reputation: 46
  • View blog
  • Posts: 198
  • Joined: 01-November 11

Re: What is directory walk?

Posted 26 March 2014 - 01:56 AM

It means to walk through a directory tree. For example, let's take the Unix file system as an example because the notation for the root is easier :P

You start at '/' (root)
From here, you might have 10 directories you can see (/etc, /usr, /var, ...), put them in your to-walk list.
Then for each of those directories, you might have a bunch of sub-directories in each, so when you walk into a directory, you add it's suib-directories to your to-walk list.
And on it goes.
To walk the entire directory tree could be quite a long process, so you might have some rules that limit you to a certain depth or breadth.

You could implement this with recursion, or without.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1