- manage option for folders inside the patch (for a/.. and b/..)
- input file is opended only when needed