typo in sprintf "." => "," as the directory checked is the parameter for it