Either way - the OS is, if anything, the thing that provides the file/metadata abstraction. It doesn't exist to hide it from you.
Without an OS, you've got a CPU and memory-mapped hardware devices. You certainly don't have files.