And note that when many files get created in the directory, the directory listing will required a lot of memory to perform os.listdir(), and such an operation on a large directory will starve out other requests (currently not wrapped in threadpool if I remember correctly).
And note that when many files get created in the directory, the directory listing will required a lot of memory to perform os.listdir(), and such an operation on a large directory will starve out other requests (currently not wrapped in threadpool if I remember correctly).