@@ -19,12 +19,12 @@ class FileDiffTest {
1919// @public
2020class FileSystem {
2121 static changePosixModeBits ( path : string , mode : PosixModeBits ) : void ;
22- static copyFile ( sourcePath : string , destinationPath : string ) : void ;
23- static createHardLink ( linkTarget : string , linkSource : string ) : void ;
24- static createSymbolicLinkFile ( linkTarget : string , linkSource : string ) : void ;
25- static createSymbolicLinkFolder ( linkTarget : string , linkSource : string ) : void ;
26- static createSymbolicLinkJunction ( linkTarget : string , linkSource : string ) : void ;
27- static deleteFile ( filePath : string , options ?: IDeleteFileOptions ) : void ;
22+ static copyFile ( options : IFileSystemCopyFileOptions ) : void ;
23+ static createHardLink ( options : IFileSystemCreateLinkOptions ) : void ;
24+ static createSymbolicLinkFile ( options : IFileSystemCreateLinkOptions ) : void ;
25+ static createSymbolicLinkFolder ( options : IFileSystemCreateLinkOptions ) : void ;
26+ static createSymbolicLinkJunction ( options : IFileSystemCreateLinkOptions ) : void ;
27+ static deleteFile ( filePath : string , options ?: IFileSystemDeleteFileOptions ) : void ;
2828 static deleteFolder ( folderPath : string ) : void ;
2929 static ensureEmptyFolder ( folderPath : string ) : void ;
3030 static ensureFolder ( folderPath : string ) : void ;
@@ -34,12 +34,12 @@ class FileSystem {
3434 static getPosixModeBits ( path : string ) : PosixModeBits ;
3535 static getRealPath ( linkPath : string ) : string ;
3636 static getStatistics ( path : string ) : fs . Stats ;
37- static move ( sourcePath : string , targetPath : string , options ? : IFileSystemMoveOptions ) : void ;
38- static readFile ( filePath : string , options ?: IReadFileOptions ) : string ;
37+ static move ( options : IFileSystemMoveOptions ) : void ;
38+ static readFile ( filePath : string , options ?: IFileSystemReadFileOptions ) : string ;
3939 static readFileToBuffer ( filePath : string ) : Buffer ;
40- static readFolder ( folderPath : string , options ?: IReadFolderOptions ) : Array < string > ;
41- static updateTimes ( path : string , times : IUpdateTimeParameters ) : void ;
42- static writeFile ( filePath : string , contents : string | Buffer , options ?: IWriteFileOptions ) : void ;
40+ static readFolder ( folderPath : string , options ?: IFileSystemReadFolderOptions ) : Array < string > ;
41+ static updateTimes ( path : string , times : IFileSystemUpdateTimeParameters ) : void ;
42+ static writeFile ( filePath : string , contents : string | Buffer , options ?: IFileSystemWriteFileOptions ) : void ;
4343}
4444
4545// @public
@@ -55,11 +55,6 @@ enum FolderConstants {
5555 NodeModules = "node_modules"
5656}
5757
58- // @public
59- interface IDeleteFileOptions {
60- throwIfNotExists ?: boolean ;
61- }
62-
6358// @beta
6459interface IExecutableResolveOptions {
6560 currentWorkingDirectory ?: string ;
@@ -74,10 +69,53 @@ interface IExecutableSpawnSyncOptions extends IExecutableResolveOptions {
7469 timeoutMs ?: number ;
7570}
7671
72+ // @public
73+ interface IFileSystemCopyFileOptions {
74+ destinationPath : string ;
75+ sourcePath : string ;
76+ }
77+
78+ // @public
79+ interface IFileSystemCreateLinkOptions {
80+ linkTargetPath : string ;
81+ newLinkPath : string ;
82+ }
83+
84+ // @public
85+ interface IFileSystemDeleteFileOptions {
86+ throwIfNotExists ?: boolean ;
87+ }
88+
7789// @public
7890interface IFileSystemMoveOptions {
91+ destinationPath : string ;
7992 ensureFolderExists ?: boolean ;
8093 overwrite ?: boolean ;
94+ sourcePath : string ;
95+ }
96+
97+ // @public
98+ interface IFileSystemReadFileOptions {
99+ convertLineEndings ?: NewlineKind ;
100+ encoding ?: Encoding ;
101+ }
102+
103+ // @public
104+ interface IFileSystemReadFolderOptions {
105+ absolutePaths ?: boolean ;
106+ }
107+
108+ // @public
109+ interface IFileSystemUpdateTimeParameters {
110+ accessedTime : number | Date ;
111+ modifiedTime : number | Date ;
112+ }
113+
114+ // @public
115+ interface IFileSystemWriteFileOptions {
116+ convertLineEndings ?: NewlineKind ;
117+ encoding ?: Encoding ;
118+ ensureFolderExists ?: boolean ;
81119}
82120
83121// @public
@@ -173,30 +211,6 @@ interface IProtectableMapParameters<K, V> {
173211 onSet ?: ( source : ProtectableMap < K , V > , key : K , value : V ) => V ;
174212}
175213
176- // @public
177- interface IReadFileOptions {
178- convertLineEndings ?: NewlineKind ;
179- encoding ?: Encoding ;
180- }
181-
182- // @public
183- interface IReadFolderOptions {
184- absolutePaths ?: boolean ;
185- }
186-
187- // @public
188- interface IUpdateTimeParameters {
189- accessedTime : number | Date ;
190- modifiedTime : number | Date ;
191- }
192-
193- // @public
194- interface IWriteFileOptions {
195- convertLineEndings ?: NewlineKind ;
196- encoding ?: Encoding ;
197- ensureFolderExists ?: boolean ;
198- }
199-
200214// @public
201215class JsonFile {
202216 static load ( jsonFilename : string ) : any ;
0 commit comments