zippo88888888 / zfilemanager Goto Github PK
View Code? Open in Web Editor NEWAndroid 文件操作
Android 文件操作
使用ContentResolver查询的MediaStore.Files.FileColumns.DATA被废弃了,不会返回数据,是否考虑换成MediaStore.Files.FileColumns._ID转成Uri来支持Android10以上版本?
应该是过渡动画导致的。
目前单选只能设置最大数为1,但我希望选中一个后直接返回
storage access framework 去读写 android/data/路径下的文件
internal object ZFileUtil 无法调用,可以通过什么方法单独调用,或者如果删除文件后怎么刷新缓存,
I need a fuction:
select a directory,and return the information of the files and directories those included by the directory.
看了半天文档,和试了各种命令。我还是没找到怎么只选文件。
大概内容是:您的应用存在不安全的解压缩模式,可能会导致路径遍历安全漏洞。
https://support.google.com/faqs/answer/9294009
在这里感谢你的开源的库,经过测试在微信保存视频到本地后的地址为/storage/emulated/0/Download/WeiXin/或者/storage/emulated/0/Pictures/WeiXin/这两个路径都有可能出现。在增加这两个路径显示出了保存的视频或者图片文档,而且检查了你的代码ZFileUtil工具类中的getQWFileData写法有问题,建议优化成为这个样子,就可以增加多个QQ/微信的路径地址
fun getQWFileData(type: Int, filePathArray: MutableList<String>, filterArray: Array<String>): MutableList<ZFileBean> { val list = ArrayList<ZFileBean>() val listFiles= mutableListOf<File>() if (filePathArray.isNullOrEmpty().not()){ if (filePathArray.isNotEmpty()){ filePathArray.forEach { val toFile = it.toFile() if (toFile.exists()){ toFile.listFiles(ZFileQWFilter(filterArray,type==ZFILE_QW_OTHER))?.run { listFiles.addAll(this.toList()) } } } } } listFiles.forEach { if (!it.isHidden) { val bean = ZFileBean( it.name, it.isFile, it.path, ZFileOtherUtil.getFormatFileDate(it.lastModified()), it.lastModified().toString(), getFileSize(it.length()), it.length() ) list.add(bean) } } if (!list.isNullOrEmpty()) { list.sortByDescending { it.originalDate } } return list }
2022-07-15 17:34:35.940 17881-17881/com.zp.zfile_manager E/-----: selete size:140.7735471725464
2022-07-15 17:34:35.941 17881-17881/com.zp.zfile_manager E/-----: config.maxSize:15
2022-07-15 17:34:35.941 17881-17881/com.zp.zfile_manager E/-----: config.maxSizeStr:您只能选取小于10M的文件
设置了最大为15M,超过15M后提示语仍然为默认的10M
ZFileListAdapter.java 175行
display error when user use "zfile{}" method
我不需要qq目录,但是需要展示文本、图片、等分类,甚至只需要一个图片网格分类,里面全是图片网格视图,这种怎么弄呢
我自己有个需求,就是在点击文件夹的时候 做一些事,自己修改源码ZFileListFragment如下
itemClick = { v, position, item ->
if (item.isFile) {
...
} else {
ZFileLog.i("进入 ${item.filePath}")
...
foldItemClick?.invoke(item.filePath)
}
}
请问后续版本更新会加入吗?
PS:
我好像有这个需求,请问啥时候zhiboduodiao, ヾ(๑╹◡╹)ノ"
/** 标题居右 */
@Deprecated("肯定没人有这种BT需求,有的话我zhiboduodiao")
const val TITLE_RIGHT = 2
lib包中缺少 implementation "com.google.android.material:material:1.2.1"依赖
如果我想自定义文件操作,想解压,我长按的时候并没有看到有界面的提示呢?
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.