• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

224
Views
Ruby (File.exist? - FileTest.exist?) on S3 object?

Can someone help me with recommending convention to call File.exist? or FileTest.exist? on an AWS S3 object in Ruby/Rails?

I'm storing the object in a string ie:

aws_photo = "https://s3.us-east-2.amazonaws.com/examplesite/photo.JPG"

Calling the above methods on the string all yield a FALSE return by Ruby.

File.exist?(aws_photo) => false

I've also tried:

FileTest.exist? and File.exist?(aws_photo.url) - (aws_photo.path)

to no avail...

Thanks!

over 3 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error