-
Notifications
You must be signed in to change notification settings - Fork 180
Working with files
Kunal Varma edited this page Jun 29, 2016
·
18 revisions
Get the Metadata for a file or folder.
Example
$file = $dropbox->getMetadata("/hello-world.txt");
With options:
$file = $dropbox->getMetadata("/hello-world.txt", ["include_media_info" => true, "include_deleted" => true]);
Fetch file details:
//Id
$file->getId();
//Name
$file->getName();
//Size
$file->getSize();
The getMetadata()
method will return an instance of the FileMetadata
model.
For available options see: https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata