@@ -61,7 +61,7 @@ class HybridNitroFS: HybridNitroFSSpec {
6161 }
6262 }
6363
64- func copy( srcPath: String , destPath: String ) throws -> NitroModules . Promise < Void > {
64+ func copy( srcPath: String , destPath: String ) throws -> Promise < Void > {
6565 return . async { [ unowned self] in
6666 do {
6767 try self . nitroFSImpl. copy ( source: srcPath, destination: destPath)
@@ -72,7 +72,7 @@ class HybridNitroFS: HybridNitroFSSpec {
7272 }
7373 }
7474
75- func unlink( path: String ) throws -> NitroModules . Promise < Bool > {
75+ func unlink( path: String ) throws -> Promise < Bool > {
7676 return . async { [ unowned self] in
7777 do {
7878 try self . nitroFSImpl. unlink ( path: path)
@@ -84,7 +84,7 @@ class HybridNitroFS: HybridNitroFSSpec {
8484 }
8585 }
8686
87- func mkdir( path: String ) throws -> NitroModules . Promise < Bool > {
87+ func mkdir( path: String ) throws -> Promise < Bool > {
8888 return . async { [ unowned self] in
8989 do {
9090 try self . nitroFSImpl. mkdir ( path: path)
@@ -96,7 +96,7 @@ class HybridNitroFS: HybridNitroFSSpec {
9696 }
9797 }
9898
99- func stat( path: String ) throws -> NitroModules . Promise < NitroFileStat > {
99+ func stat( path: String ) throws -> Promise < NitroFileStat > {
100100 return . async { [ unowned self] in
101101 do {
102102 return try self . nitroFSImpl. stat ( path: path)
@@ -107,7 +107,7 @@ class HybridNitroFS: HybridNitroFSSpec {
107107 }
108108 }
109109
110- func readdir( path: String ) throws -> NitroModules . Promise < [ NitroFile ] > {
110+ func readdir( path: String ) throws -> Promise < [ NitroFile ] > {
111111 return . async {
112112 do {
113113 return try self . nitroFSImpl. readdir ( atPath: path)
@@ -118,7 +118,7 @@ class HybridNitroFS: HybridNitroFSSpec {
118118 }
119119 }
120120
121- func rename( oldPath: String , newPath: String ) throws -> NitroModules . Promise < Void > {
121+ func rename( oldPath: String , newPath: String ) throws -> Promise < Void > {
122122 return . async {
123123 do {
124124 return try self . nitroFSImpl. rename ( oldPath: oldPath, newPath: newPath)
@@ -173,7 +173,7 @@ class HybridNitroFS: HybridNitroFSSpec {
173173 }
174174 }
175175
176- func downloadFile( downloadOptions: NitroDownloadOptions , onProgress: ( ( Double , Double ) -> Void ) ? ) throws -> NitroModules . Promise < NitroFile > {
176+ func downloadFile( downloadOptions: NitroDownloadOptions , onProgress: ( ( Double , Double ) -> Void ) ? ) throws -> Promise < NitroDownloadResult > {
177177 return . async { [ unowned self] in
178178 do {
179179 return try await self . nitroFSImpl. downloadFile (
0 commit comments