mattashton1
2 Iron

Re: API questions


Hi Mwigger,

Have you fooled around with the latest API (7.2)?

For a directory /ifs/data/matt:

ma-visi-72-1# curl -u root:a -k 'https://191.1.2.3:8080/namespace/ifs/data/matt?detail=size'

{"children":[{

  "name" : "thisisifsdatamatt.txt",

  "size" : 29

}

,{

  "name" : "foo",

  "size" : 58

}

ma-visi-72-1#

This gives you the size of the files contained within.  Though it looks like you'll have to programmatically sum them.

I haven't seen an elegant way of determining if a folder exists... 

Cheers,
Matt