Correcting typo in pathname writable? function call