unified ReadFolder/File to make map available from larch