Incorrect type for Filesystem object