首页 > 解决方案 > Java jcifs 设置属性作者

问题描述

我在我的 Kotlin 应用程序中使用 jcifs。

我想将文件写入 SMB 服务器。

如何在 jcifs 中设置文件属性“Autor”?

这是我的代码:

var smbfile: SmbFile = SmbFile(path, auth)    
val smbfos = SmbFileOutputStream(smbfile)
    smbfos.write(it.readBytes())

标签: androidkotlinjcifs

解决方案


推荐阅读