File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
nmcp-tasks/src/main/kotlin/nmcp/transport Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ fun publishFileByFile(
4242 into : File ,
4343) {
4444 return publishFileByFile(
45- FilesystemTransport (into.absolutePath),
45+ FilesystemTransport (into.absolutePath, null ),
4646 from.walk().filter { it.isFile }.map {
4747 FileWithPath (it, it.relativeTo(from).path)
4848 }.toList(),
Original file line number Diff line number Diff line change @@ -166,10 +166,10 @@ fun Content.toRequestBody(): RequestBody {
166166
167167internal class FilesystemTransport (
168168 private val basePath : String ,
169- private val logger : GLogger ,
169+ private val logger : GLogger ? ,
170170) : Transport {
171171 override fun get (path : String ): BufferedSource ? {
172- logger.info(" Nmcp: read '$path '" )
172+ logger? .info(" Nmcp: read '$path '" )
173173 val file = File (basePath).resolve(path)
174174 if (! file.exists()) {
175175 return null
@@ -178,7 +178,7 @@ internal class FilesystemTransport(
178178 }
179179
180180 override fun put (path : String , body : Content ) {
181- logger.info(" Nmcp: write '$path '" )
181+ logger? .info(" Nmcp: write '$path '" )
182182 File (basePath).resolve(path).apply {
183183 parentFile.mkdirs()
184184 sink().buffer().use {
You can’t perform that action at this time.
0 commit comments