ScummVM API documentation
Cloud::StorageFile Class Reference

#include <storagefile.h>

Public Member Functions

 StorageFile (const Common::String &pth, uint32 sz, uint32 ts, bool dir)
 
 StorageFile (const Common::String &fileId, const Common::String &filePath, const Common::String &fileName, uint32 sz, uint32 ts, bool dir)
 
Common::String id () const
 
Common::String path () const
 
Common::String name () const
 
uint32 size () const
 
uint32 timestamp () const
 
bool isDirectory () const
 
void setPath (const Common::String &path_)
 

Detailed Description

StorageFile represents a file storaged on remote cloud storage. It contains basic information about a file, and might be used when listing directories or syncing files.

Some storages (Google Drive, for example) don't have an actual path notation to address files. Instead, they are using ids. As resolving id by path is not a fast operation, it's required to use ids if they are known, but user-friendly paths are necessary too, because these are used by Requests.

If storage supports path notation, id would actually contain path.


The documentation for this class was generated from the following file: