abashev / vfs-s3

Amazon S3 driver for Apache commons-vfs (Virtual File System) project
Apache License 2.0
93 stars 50 forks source link

Don't attach file to delete #58

Open eugene-savko opened 5 years ago

eugene-savko commented 5 years ago

Can S3FileObject was been deleted directly, without calling doAttach method in S3FileObject class. It will improve performance on deleting files, because Amazon client won't return exception or error response Deletes the specified object in the specified bucket. Once deleted, the object can only be restored if versioning was enabled when the object was deleted. If attempting to delete an object that does not exist, Amazon S3 will return a success message instead of an error message. Is it acceptable for S3FileObject?