wsp_io_file: Added folding