You can create directories as far as I'm concerned in OnlineGDB projects. Either you can use a C library for creating a directory (see here), or you can use the system("mkdir <DIRECTORY_NAME>") call to ask the operating system to do it for you.
How it would appear in OnlineGDB (if at all), I have no idea. Give it a try and tell us about your experience.
Good luck!