List of usage examples for android.support.v4.provider DocumentFile canRead
public abstract boolean canRead();
From source file:com.amaze.carbonfilemanager.filesystem.RootHelper.java
public static String parseDocumentFilePermission(DocumentFile file) { String per = ""; if (file.canRead()) { per = per + "r"; }/*from w w w. j ava 2 s . c o m*/ if (file.canWrite()) { per = per + "w"; } if (file.canWrite()) { per = per + "x"; } return per; }
From source file:com.frostwire.android.LollipopFileSystem.java
@Override public boolean canRead(File file) { if (file.canRead()) { return true; }// w w w . ja v a 2s . c o m DocumentFile f = getDocument(app, file); return f != null && f.canRead(); }