Node.h
189 uploadFile(const boost::filesystem::path& filepath, pplx::cancellation_token_source cts = pplx::cancellation_token_source{}) = 0;
201 download(const utility::string_t& destinationPath, FileDownloader::Policy policy = FileDownloader::Policy::ignore) = 0;
259 copyOrMoveTo(const FolderNode& node, bool isMove, MergePolicy policy = MergePolicy::renameSource) const;
virtual const std::vector< std::unique_ptr< Node > > & getChildren() const =0
Load the children node if needed then return them. The children nodes are stored in a local cache var...
Definition: Node.h:50
virtual const FileNodeData & fileData() const =0
Get the data associated with a FileNode.
std::unique_ptr< core::Node > copyTo(const FolderNode &node, MergePolicy policy=MergePolicy::renameSource) const
Shortcut for copyOrMoveTo(const FolderNode&, false, MergePolicy)
Definition: Node.cpp:219
virtual FolderNode & addChildFolder(const utility::string_t &name)=0
Create a new FolderNode and add it to the children list.
std::unique_ptr< core::Node > moveTo(const FolderNode &node, MergePolicy policy=MergePolicy::renameSource) const
Shortcut for copyOrMoveTo(const FolderNode&, bool, MergePolicy)
Definition: Node.cpp:213
Definition: EnumConvertor.h:29
virtual UploadingFile uploadFile(const boost::filesystem::path &filepath, pplx::cancellation_token_source cts=pplx::cancellation_token_source{})=0
Upload a file into this FolderNode.
const utility::string_t & rename(const utility::string_t &name)
Rename this node.
Definition: Node.cpp:197
std::unique_ptr< core::Node > copyOrMoveTo(const FolderNode &node, bool isMove, MergePolicy policy=MergePolicy::renameSource) const
Copy or move a node.
Definition: Node.cpp:225
virtual FileDownloader download(const utility::string_t &destinationPath, FileDownloader::Policy policy=FileDownloader::Policy::ignore)=0
Download a FileNode.
virtual FolderNode createChildFolder(const utility::string_t &name) const =0
Create a new FolderNode (Do not add it to the local children list)
Definition: FolderNode.h:27
Definition: Application.h:45