mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 06:24:56 +00:00
Basic folder upload for sftp electron.
This commit is contained in:
@@ -22,6 +22,7 @@ export interface MessageBoxResult {
|
||||
|
||||
export abstract class FileTransfer {
|
||||
abstract getName (): string
|
||||
abstract getRelativePath (): string
|
||||
abstract getMode (): number
|
||||
abstract getSize (): number
|
||||
abstract close (): void
|
||||
@@ -84,6 +85,7 @@ export abstract class FileUpload extends FileTransfer {
|
||||
|
||||
export interface FileUploadOptions {
|
||||
multiple: boolean
|
||||
directory: boolean
|
||||
}
|
||||
|
||||
export type PlatformTheme = 'light'|'dark'
|
||||
@@ -202,6 +204,10 @@ export class HTMLFileUpload extends FileUpload {
|
||||
return this.file.name
|
||||
}
|
||||
|
||||
getRelativePath (): string {
|
||||
return ""
|
||||
}
|
||||
|
||||
getMode (): number {
|
||||
return 0o644
|
||||
}
|
||||
|
Reference in New Issue
Block a user