Abstraction for local and remote filesystems