Class SecureFileUtil
java.lang.Object
com.streamwide.smartms.lib.template.security.SecureFileUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanvalidateFilePath(android.content.Context context, String path, boolean ignoreFileNotExist) Determines whether the specified file is : Not a Symbolic Link rather than an actual file Does not contains in a symbolic folder link
-
Method Details
-
validateFilePath
public static boolean validateFilePath(@NonNull android.content.Context context, @NonNull String path, boolean ignoreFileNotExist) throws NullPointerException, IOException Determines whether the specified file is :- Not a Symbolic Link rather than an actual file
- Does not contains in a symbolic folder link
- Parameters:
context- The application contextpath- the file pathignoreFileNotExist- if ignoreFileNotExist true then no need to throw FileNotFoundException when file is not exist- Returns:
- true if the current file is a file and not a symbolic link, false otherwise or file not exist
- Throws:
NullPointerExceptionIOException
-