How to use Arduino as flash drive and read from it?

So, I have an Arduino and would like to implement a flash disk functionality into my ESP32 Thing.
However, since ESP32 does not have USB functionality, I must use Arduino which does. So basically, I want to be able to do something like

#include <flashdisk.h>
#include <Serial.h>
String code = "none";
FlashDisk disk();
Serial.begin(9600);
disk.begin();
disk.await_user_write(); //Waits until the user writes to the drive
code = disk.read("code.py")

Serial.println(code);

disk.create("hello.py")
disk.write("hello.py","print('hello world')");
disk.delete("delete_me.py");

disk.commit(); //Finalize changes

Is this possible? I am on Arduino Due.

Thanks in advance!

Is this possible?

No.

pylon:
No.

are you sure?
It is the Due and it should 'only' read the flash drive.

I found this An example of Arduino Due as an USB host mass storage - Arduino Due - Arduino Forum

It is the Due and it should 'only' read the flash drive.

OP didn't mention an SD card but reading/writing to the flash memory (at least that was my interpretation of the post, I'm not a native speaker).

And my interpretation of the pseudo code he supplied is that he wants to read/write/delete files. Of course using the SD card this is possible but extremely slow compared so a $1.50 USB reader.

Is this possible? I am on Arduino Due.

Yes, with an SD card module.

However, there is no point in thinking about, or using such a device as if it were a "USB flash disk".