Class SecureFileUtil

java.lang.Object
com.streamwide.smartms.lib.template.security.SecureFileUtil

public class SecureFileUtil extends Object
  • 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 :
      1. Not a Symbolic Link rather than an actual file
      2. Does not contains in a symbolic folder link
      Parameters:
      context - The application context
      path - the file path
      ignoreFileNotExist - 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:
      NullPointerException
      IOException