}
@Override
public Set<String> listDir(String path, ApiClient.ListingType listingType) throws InvalidTokenException, NotADirectoryException {
Set<String> files = Sets.newHashSet();
DbxMetadata metadata = getMetadata(path);
if (metadata != null) {
if (!metadata.isDir) {
throw new NotADirectoryException("Expecting dir, got a file: " + path);
}