Add factories for local folders and files.
Use posixpath for remote paths.