title: Is there any way to check existence of a path in S3 bucket using AWS SDK for Node.js?
body: <p>I want to check whether there exist a path (e.g. /myTest) in my bucket or not. The only way that I can handle it is that try to find whether there exist an object in my bucket that its key matches the <code>path+'\/?.*'</code> regex.</p>
  
  <p>AWS SDK for javascript has the function getObject that in its params gets an string for the <code>key</code> param. But it seems that the value of this parameter could not accept regex. So I'm not sure whether there is any way to check the existence of a path in S3 bucket.  </p>