File: test getattr and getitem object writing in subdirectory