dropbox

package
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 5 Imported by: 1

README

Dropbox backend

Parameters

  • token: The Dropbox access token to use. If it isn't set, the DROPBOX_TOKEN environment variable is used.

How to use it

Create an app
  1. Create an app in the Dropbox App Console, with the access type you need ("App folder" restricts the FTP server to a dedicated folder, "Full Dropbox" gives access to everything).
  2. In the "Permissions" tab, enable at least files.metadata.read, files.content.read and files.content.write.
  3. In the "Settings" tab, generate an access token.
Configure the access
{
  "accesses": [
    {
      "user": "dropbox",
      "pass": "dropbox",
      "fs": "dropbox",
      "params": {
        "token": "sl.*****"
      }
    }
  ]
}

Documentation

Overview

Package dropbox provides a Dropbox layer

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingToken = errors.New("missing token")

ErrMissingToken is returned if a dropbox token wasn't specified.

Functions

func LoadFs

func LoadFs(access *confpar.Access) (afero.Fs, error)

LoadFs loads a file system from an access description

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL