code: static boolean hasDiskAccess(final String path) {
  		try {
  			AccessController.checkPermission(new FilePermission(path, "read,write"));
  			return true;
  		} catch (AccessControlException e) {
  			return false;
  		}
  	}
docs: Checks for disk access.
  
  @param path
  the path
  @return true, if successful