Recover Files and Folders deleted from iOS Files App
The ‘files’ app have a recently deleted like ‘photos ‘ you can recover accidentally deleted files there.

Files -> Browse -> Location -> Recently deleted 

I try it on my iPhone 6s,iOS 11.2.2.