Filemode must be an integer