method
S3File.exists
Checks if the file exists in S3, using an HTTP HEAD request that does not download the file.
@returns
Promise resolving to true if file exists, false otherwise
// Basic existence check
if (await file.exists()) {
console.log("File exists in S3");
}