#Listing all directories within a Qtree

1 messages · Page 1 of 1 (latest)

stiff fjord
#

Hi there,

I was wondering if it's possible to return all directories within a Qtree? I can create a recursive function that grabs the directories with FileInfo but I was wondering whether there is an in-built function that does this?

normal forum
#

you should be able to do a standard "ls" command
:>node run -node NODE1 -command "ls /vol/volume0/qtree0"

#

diag priv mode

haughty widget
#

File System Analytics might be able to with CURL, but it gives you more responses than obviously just subdirectories.

#

CURL/REST.

#

I have no idea how to implement that, but I think it's possible.

stiff fjord
#

Thanks for the feedback guys, I've been able to do it recursively with FSA and it works no problem! I do have a problem though, I can see when I run FSA that it updates the directory access time which is suboptimal, should it not be doing that?

pallid cliff
#

Access time (atime) means when the file or directory was last read. Since FSA reads the directory, it will update the atime. You can disable atime updates on a per-volume basis but then nothing will update it anymore, neither FSA nor client access.

stiff fjord
#

@pallid cliff I find that quite puzzling, what is the point of FSA returning atime then? If everytime I run FSA it updates the atime, it might as well return the current time?