Use search
method to search for files or folder in the user’s Personal Cloud Storage account.
This code sample lists all files with a jpg
extension.
Code Sample
files, folders = cloud.search(query='extension:jpg')
This code sample lists all audio files by specifying content type of audio/mpeg
.
Code Sample
files, folders = cloud.search(query='contentType:audio/mpeg')
You can use this code sample to search for recently updated files by specifying versionCreated
. versionCreated
lists the date and time of the last change to the file.
Code Sample
files, folders = cloud.search(query='file:true', sort='versionCreated+desc')
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.