I need to compare the content of two directories using DiffManager.getInstance().showDiff().
This simple task is complicated by the fact that the first directory is maintained on a hard disk and the second one is the set of files in memory.
DiffReuqest is one of the parameters of showDiff(). A Document or a VirtualFile can be the wrapped with DiffReuqest, unlike PsiDirectory.
So, this is the source of problem, — a Document can't be the directory, and VirtualFile can't be created without a real reflection in LocalFileSystem.
Is there any way to get this task done and compare set of files with directory like view? Or is the only way to compare this set of files is to use DiffReuqestChain?
Or may it be work around using virtual file systems?