简体   繁体   中英

Difference between different manufacturers

Currently I am working with files in android and in order to create directory I used mkdir() command. The issue is, it worked on devices like Samsung,LG,Pixel and few others while it didn't work in One Plus of same API version. Replacing mkdir() with mkdirs() made it to work in one plus also. I would like to know how this varies from manufacturer to manufacturer.

那是因为每个制造商的根文件夹都不同,所以当您调用 mkdirs() 时,它将为您的文件创建父文件夹,因此您无需自己处理它们

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM