Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DropboxPath ¶
type DropboxPath interface { // Path format for Dropbox API Path() string // Namespace ID & true, if exists. Otherwise "" and false. Namespace() (namespace string, exist bool) // File/Folder ID & true, if exists. Otherwise "" and false. Id() (id string, exist bool) // Logical part of the path. That doesn't contain namespace or file/folder id. // Returns `/` if the path point to root. LogicalPath() string // Parent path. Returns same instance if it's a root path. // NamespaceId may not be accurate. ParentPath() DropboxPath // Child path ChildPath(elem ...string) DropboxPath // Parent path // Notice: parent namespace_id might be differ from actual. This path returns // a same namespace_id of this instance. Parent() DropboxPath IsValid() bool // Is root path IsRoot() bool }
func NewDropboxPath ¶
func NewDropboxPath(path string) DropboxPath
Create new `Path` instance. Windows style paths are automatically replaced for API.
func NewPathDisplay ¶
func NewPathDisplay(path string) DropboxPath
Create new `Path` instance. No validation & modification
Click to show internal directories.
Click to hide internal directories.