public final static boolean isYAFFS2Image(Program program) {
		byte[] bytes = new byte[YAFFS2Constants.MAGIC_SIZE];
		try {
			Address address = program.getMinAddress();
			program.getMemory().getBytes(address, bytes);
		}
		catch (Exception e) {
		}
		// check for initial byte equal to 0x03, 'directory'
		// and check that the first byte of the file name is null
		// ... this is the yaffs2 root level dir header
		return ((bytes[0] == 0x03) && (bytes[10] == 0x00));

	}
no Magic Bytes, so check for an empty directory in the first header
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/yaffs2/YAFFS2Utils.java