Skip to main content

I currently have the path of the file with a webdav mounted box system where 'cat /etc/fstab'

https://dav.box.com/dav /box    davfs   defaults,uid=username,gid=username,_netdev,auto  0       0

 

results in:

 

/box/spollock# cd Demo-Rack/

root@fscrawl:/box/spollock/Demo-Rack# ls -al

total 30237

drwxr-xr-x  2 root root      336 Sep 14  2017 .

drwxr-xr-x 41 root root     4112 Nov 16 02:11 ..

-rw-r--r--  1 root root  4892251 Jul 17  2017 AWS_5_Install_and_Configure.pdf

-rw-r--r--  1 root root  1843954 Sep 14  2017 EXPO-RACK-BlackHat-SUMMARY.pdf

-rw-r--r--  1 root root  4131929 Jul 17  2017 EXPO-RACK-SUMMARY20170707.docx

-rw-r--r--  1 root root  4209655 Jul 17  2017 EXPO-RACK-SUMMARY20171707.docx

-rw-r--r--  1 root root 15878061 Jul 30  2017 Rack Diagram.eddx

 

How can I get the file information from the API based on path/file rather than ID which I do not have here.

 

The API wants:  https://api.box.com/2.0/files/462926201657

 

I need something like {totally made up}

 https://api.box.com/2.0/files/path=spollock/Demo-Rack/AWS_5_Install_and_Configure.pdf

which returns that unique ID.

 

 

 


Hi , thank you for this. Our API currently does not support look up of files by path. To traverse a path you will have to traverse the file tree directly, starting from the root folder with ID `0`.


 


Can I ask what you are exactly trying to achieve here?



Reply