export class YandexDisk extends EventEmitter {
No description provided.
Target style API. Preferred for new code.
Members
11 itemsTarget Style
Target Style
constructor(token) {
/** Builds a Yandex Disk client from an OAuth token.
async info() {
/** Returns account storage information.
async upload({ from, to, overwrite = false, removeAfterUpload = false } = {}) {
/** Uploads one file to Yandex Disk.
async stats({ at }) {
/** Returns file metadata for a remote path.
async uploadDirectory({ from, to } = {}) {
/** Uploads a local folder tree to Yandex Disk.
async createDirectory({ at }) {
/** Creates a remote folder if it does not already exist.
Legacy Style
Legacy Style
async getInfo() {
/** Returns account storage information.
async uploadFile(localPath, remotePath, { overwrite, removeAfterUpload } = {}) {
/** Uploads one file to Yandex Disk.
async fileStats(file) {
/** Returns file metadata for a remote path.
async uploadFolder(localFolder, remoteFolder) {
/** Uploads a local folder tree to Yandex Disk.
async createFolder(remotePath) {
/** Creates a remote folder if it does not already exist.