ben-wallis / wfd Goto Github PK
View Code? Open in Web Editor NEWWindows Open and Save dialogs in Rust using winapi
License: MIT License
Windows Open and Save dialogs in Rust using winapi
License: MIT License
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
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).
I think this would be a nice thing to do for compatibility :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.