code: private File getTempFolder(String tempPath) {
          if (tempPath != null) {
              File folder = new File(tempPath);
              if (folder.exists()) {
                  return folder;
              }
          }
          return null;
      }
docs: Return the temp folder File object or null if the path does not exist