Coder Social home page Coder Social logo

bysmb's Introduction

bysmb's People

Contributors

youlookwhat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bysmb's Issues

真实场景遇到的一些问题

这里提几个遇到的点:
1.作者对外开放的方法只能通过读取本地的文件流 , 然后再通过smb写入pc端 . 对于我的场景 , 是直接能拿到写入的字符串内容 , 不需要读取本地文件流再写入pc端 .
2.对于共享文件夹名的支持不友好 , 假如是"ShareFile"为共享文件名是可以的 , 但是"ShareFile/K1"这样带有斜杠的就直接报错 . 看了源码 , SmbPath类的另外一个构造方法是有path字段的 , 但是并没有对外开放.
val bySmb = BySMB.with().setConfig(ip, // ip computerSharingUserName, // 用户名 computerSharingPassword, // 密码 printPath // 共享文件夹名 ).setReadTimeOut(60).setSoTimeOut(180).build()
以上只是提出我的使用场景遇到的问题 , 还是感谢作者开放源码 , 可以省了不少事 .

你好,怎么知道获取的文件列表是类型?

smb.listFile(object : OnReadFileListNameCallback {
            override fun onFailure(message: String) {

            }

            override fun onSuccess(fileNameList: List<String>) {
                files = fileNameList
                for (i in fileNameList) {
                    Log.v("xxx", i)
                }
            }
        })

类型是string,怎么知道文件类型,比如zip, txt, 文件夹,jpg等

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.