-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable recursively create directories. Notice: specperator '/' or '\'
- Loading branch information
Showing
5 changed files
with
139 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { PostFlow } from './post-flow'; | ||
import { NavigationFlowOutNode, IRcloneServer } from '../extra'; | ||
import { CombErr, AjaxFlowInteralNode, FlowOutNode } from '../core'; | ||
|
||
export interface OperationsMkdirFlowParamsNode { | ||
/** a remote name string eg “drive:” */ | ||
fs: string; | ||
/** a path within that remote eg “dir” */ | ||
remote: string; | ||
} | ||
export interface OperationsMkdirFlowInNode extends NavigationFlowOutNode, IRcloneServer {} | ||
export interface OperationsMkdirFlowOutNode extends FlowOutNode {} | ||
|
||
export abstract class OperationsMkdirFlow extends PostFlow< | ||
OperationsMkdirFlowInNode, | ||
OperationsMkdirFlowOutNode, | ||
OperationsMkdirFlowParamsNode | ||
> { | ||
// public prerequest$: Observable<CombErr<OperationsMkdirFlowInNode>>; | ||
protected cmd: string = 'operations/mkdir'; | ||
protected params = (pre: CombErr<OperationsMkdirFlowInNode>): OperationsMkdirFlowParamsNode => { | ||
if (pre[1].length !== 0) return {} as any; | ||
return { | ||
fs: `${pre[0].remote}:`, | ||
remote: pre[0].path, | ||
}; | ||
}; | ||
protected cacheSupport: boolean = false; | ||
protected reconstructAjaxResult(x: AjaxFlowInteralNode): CombErr<OperationsMkdirFlowOutNode> { | ||
return [{}, x[1]]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters