Skip to content
Unverified Commit fc96fa0c authored by Robin Appelman's avatar Robin Appelman Committed by Julius Härtl
Browse files

fix s3 doesDirectoryExist check for empty directories



if a directory is empty, only the 'marker' object `/` exists.

since not all s3 implementations return just the prefix when listing objects by prefix,
when listing objects by the folder prefix, nothing will be returned if the directory is empty.
by not including the trailing slash in the prefix, the folder marked will always be returned if it exists

Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 9780c4f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment