Skip to content

Commit

Permalink
Changed import: @zenfs/core/path -> @zenfs/core/emulation/path.js
Browse files Browse the repository at this point in the history
Organize imports
Add Google Drive backend export
  • Loading branch information
james-pre committed Jan 7, 2025
1 parent 8e32065 commit f4f5c88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/dropbox.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Async, Errno, ErrnoError, FileSystem, PreloadFile, Stats, type Backend, type File } from '@zenfs/core';
import type { Backend, File } from '@zenfs/core';
import { Async, Errno, ErrnoError, FileSystem, PreloadFile, Stats } from '@zenfs/core';
import { S_IFDIR, S_IFLNK, S_IFREG } from '@zenfs/core/emulation/constants.js';
import { dirname } from '@zenfs/core/path';
import { dirname } from '@zenfs/core/emulation/path.js';
import { Buffer } from 'buffer';
import type * as DB from 'dropbox';

Expand Down
5 changes: 3 additions & 2 deletions src/gdrive.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Async, type Backend, encodeRaw, Errno, ErrnoError, type File, FileSystem, PreloadFile, Stats } from '@zenfs/core';
import type { Backend, File } from '@zenfs/core';
import { Async, encodeRaw, Errno, ErrnoError, FileSystem, PreloadFile, Stats } from '@zenfs/core';
import { S_IFDIR, S_IFREG } from '@zenfs/core/emulation/constants.js';
import { dirname, join } from '@zenfs/core/path';
import { dirname, join } from '@zenfs/core/emulation/path.js';

import 'gapi';
import 'gapi.client.drive-v3';
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './dropbox.js';
export * from './gdrive.js';
export * from './s3.js';
5 changes: 3 additions & 2 deletions src/s3.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { S3 } from '@aws-sdk/client-s3';
import { Async, type Backend, type File, FileSystem, InMemory, PreloadFile, Stats, type StatsLike, ErrnoError } from '@zenfs/core';
import type { Backend, File, StatsLike } from '@zenfs/core';
import { Async, ErrnoError, FileSystem, InMemory, PreloadFile, Stats } from '@zenfs/core';
import { S_IFDIR, S_IFMT } from '@zenfs/core/emulation/constants.js';
import { join } from '@zenfs/core/path';
import { join } from '@zenfs/core/emulation/path.js';

export type Metadata = Partial<Record<keyof StatsLike, string>>;

Expand Down

0 comments on commit f4f5c88

Please sign in to comment.