Getting a list of files from a file store is just one line of code with Cheddar.

How to grab a listing of files in a file store with Cheddar

Gary Belcher -  08 Oct, 2014

It's often useful to obtain a listing of files in a file store. For example, you might want to establish if a file you are looking for is in a file store in the first place before retrieving it, or you might just want to obtain a listing of everything in the file store, or maybe just a subset of files in the file store.

This is now possible with Cheddar in just a single line of code:

fileStore.list(directory, prefix);

Simply provide the directory you wish to list the contents of, and an optional prefix to limit the listing to files that begin with that prefix.

Find out more about Cheddar on our GitHub page.

Subscribe to this blog

Use of this website and/or subscribing to this blog constitutes acceptance of the travel.cloud Privacy Policy.

Comments