Please use methods from the Post::File mixin when possible, they try to be multiplatform and multisession. Use file_exist? (or file?) if possible