Add missing methofs and parameters to DirectoryStub and FileStub to match their interface.