xshell 1.2.27 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file.d.ts +5 -4
- package/net.d.ts +1 -1
- package/package.json +1 -1
- package/path.d.ts +2 -2
package/file.d.ts
CHANGED
|
@@ -141,6 +141,10 @@ export interface FCopyOptions {
|
|
|
141
141
|
@example
|
|
142
142
|
fcopy('D:/temp/camera/', 'D:/camera/') */
|
|
143
143
|
export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite, filter, }?: FCopyOptions): Promise<void>;
|
|
144
|
+
export interface FMoveOptions {
|
|
145
|
+
overwrite?: boolean;
|
|
146
|
+
print?: boolean;
|
|
147
|
+
}
|
|
144
148
|
/** 移动文件或文件夹
|
|
145
149
|
相同分区 / 文件系统下使用 rename, 否则 fallback 到复制后删除源文件
|
|
146
150
|
- src: 源 文件/文件夹 完整路径
|
|
@@ -151,10 +155,7 @@ export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite
|
|
|
151
155
|
|
|
152
156
|
@example
|
|
153
157
|
fmove('D:/temp/camera/', 'D:/camera/') */
|
|
154
|
-
export declare function fmove(fp_src: string, fp_dst: string, { overwrite, print }?:
|
|
155
|
-
overwrite?: boolean;
|
|
156
|
-
print?: boolean;
|
|
157
|
-
}): Promise<void>;
|
|
158
|
+
export declare function fmove(fp_src: string, fp_dst: string, { overwrite, print }?: FMoveOptions): Promise<void>;
|
|
158
159
|
/** 重命名文件 rename file
|
|
159
160
|
- fp: 当前文件名/路径 current filename/path
|
|
160
161
|
- fp_: 新的文件名/路径 new filename/path
|
package/net.d.ts
CHANGED
|
@@ -285,5 +285,5 @@ export declare class RemoteClient {
|
|
|
285
285
|
[inspect.custom](): {
|
|
286
286
|
remote: string;
|
|
287
287
|
websocket: string;
|
|
288
|
-
} & Omit<this, "websocket" | typeof import("util").inspect.custom | "
|
|
288
|
+
} & Omit<this, "call" | "websocket" | typeof import("util").inspect.custom | "remote" | "send">;
|
|
289
289
|
}
|
package/package.json
CHANGED
package/path.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function extname(path: string): string;
|
|
|
54
54
|
/** `/` */
|
|
55
55
|
export declare const sep = "/";
|
|
56
56
|
/** The platform-specific file delimiter. ';' or ':'. */
|
|
57
|
-
export declare const delimiter: "
|
|
57
|
+
export declare const delimiter: ";" | ":";
|
|
58
58
|
/** Returns an object from a path string - the opposite of format().
|
|
59
59
|
@param path path to evaluate.
|
|
60
60
|
@throws {TypeError} if `path` is not a string. */
|
|
@@ -81,7 +81,7 @@ export declare let path: {
|
|
|
81
81
|
basename: typeof basename;
|
|
82
82
|
extname: typeof extname;
|
|
83
83
|
sep: string;
|
|
84
|
-
delimiter: "
|
|
84
|
+
delimiter: ";" | ":";
|
|
85
85
|
parse: typeof parse;
|
|
86
86
|
format: typeof format;
|
|
87
87
|
toNamespacedPath: typeof toNamespacedPath;
|