getMimeTypeFromName().startsWith("image/"));
}
- /**
- * @return 'True' if the file is simple text (e.g. not application-dependent, like .doc or .docx)
- */
- public boolean isText() {
- return ((mMimeType != null && mMimeType.startsWith("text/")) ||
- getMimeTypeFromName().startsWith("text/"));
- }
-
public String getMimeTypeFromName() {
String extension = "";
int pos = mRemotePath.lastIndexOf('.');
return (result != null) ? result : "";
}
+ /**
+ * @return 'True' if the file is hidden
+ */
+ public boolean isHidden() {
+ return getFileName().startsWith(".");
+ }
+
public String getPermissions() {
return mPermissions;
}