Giter Site home page Giter Site logo

wfd's People

Contributors

atomycx avatar ben-wallis avatar maroider avatar

Stargazers

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

Watchers

 avatar  avatar

wfd's Issues

Panic while selecting directory inside my Oneplus 8

When I select a directory inside my Oneplus 8, I'm getting the following panic:
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /cargo/registry/src/github.com-1ecc6299db9ec823/wfd-0.1.4/src/lib.rs:281:29
I think it is probably related to the fact that the phone is using some special protocol to provide access to its internal files. I forgot the name. It also shows up as a different icon in explorer. Let me know if you need more information.

Edit: it's MTP

It might be a good idea to have some of `DialogParams`'s fields take `&'a Path` instead of `&'a str`

Similarly to #2 and native-dialog-rs/native-dialog-rs#3, the current API may make certain use-cases which ought to be possible impossible.
For instance, setting default_folder, file_name, folder or save_as_item by using something like directories::BaseDir::home_dir and possibly using Path::join, one could conceivably (although exceedingly rarely) end up with a path which can't be converted to valid UTF-8.
default_extension and file_types might also fall prey to this, although I find it much more unlikely.

This could likely be solved simply by changing some fields to take &'a Path instead of &'a str, but this may prove slightly detrimental to the ergonomics of the API (although it doesn't take more than appending .as_ref() to any string literal).

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.