I upload files in many different ways to my s3 bucket.
In python i could use boto like this:
from boto.s3.connection import S3Connection
conn = S3Connection('access-key','secret-access-key')
bucket = conn.get_bucket('bucket')
for key in bucket.list():
print key.name
In node I have used knox to connect to buckets to get urls, but how could I iterate through the keys in node to see all files in my bucket?
You can do it with AwsSum. It is actively maintained and can perform ALL the S3 operations provided by Amazon.
There is a fully featured example of exactly what you're looking for in the node-awssum-scripts repo. It gets the first 1000 keys, then keeps doing new requests using the 'marker' parameter to the operation until there are no more keys, so you may want to look at that:
If you need any help, give me a shout on GitHub. Disclaimer: I'm chilts, author of Awssum. :)