Skip to content

Commit

Permalink
OneDrive converted
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 10, 2024
1 parent 9476b1c commit 873258d
Show file tree
Hide file tree
Showing 13 changed files with 462 additions and 507 deletions.
443 changes: 236 additions & 207 deletions lib/googleDriveLib.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/googleDriveLib.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions lib/googleTest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/googleTest.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions lib/googleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { readFileSync } from 'node:fs';
import GoogleDrive from './googleDriveLib';

Check failure on line 2 in lib/googleTest.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (20.x)

Could not find a declaration file for module './googleDriveLib'. '/home/runner/work/ioBroker.backitup/ioBroker.backitup/lib/googleDriveLib.js' implicitly has an 'any' type.
import type { Credentials } from 'google-auth-library/build/src/auth/credentials';

const token: Credentials = JSON.parse(readFileSync('./test.json').toString());

const gDrive = new GoogleDrive(token);

gDrive
.createFolder('/iobroker-backup/broker/one')
.then(id => console.log(`ID=${id}`))

Check failure on line 11 in lib/googleTest.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (20.x)

Parameter 'id' implicitly has an 'any' type.
.catch(() => console.log('Error Google Drive createFolder'));
3 changes: 1 addition & 2 deletions lib/list/ftp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 873258d

Please sign in to comment.