Status/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 01/05/2015
Components: File Management, VFS-S3
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 1
While S3 doesn't support physical directories, it does support virtual directories (example: the "Create Folder" button in the S3 Management Console). Currently, CF only partially supports these virtual directories. directoryList() correctly returns type="Dir" for these virtual directories, but directoryDelete() only deletes the virtual directory but not its contents. And directoryCreate() is unable to create these virtual directories.
Repro:
1) In S3 Management Console, create the "mydir" folder w/in a bucket
2) In S3 Management Console, upload myfile.txt into the "mydir" folder
3) In S3 Management Console, delete the "mydir" folder and see the myfile.txt was also deleted (good)
4) Repeat #2
5) Run this:
<cfscript>
writeDump(directoryList("s3://mybucket", true, "query"));
directoryDelete("s3://mybucket/mydir");
writeDump(directoryList("s3://mybucket", true, "query"));
</cfscript>
6) See the "mydir" virtual directory was deleted but the myfile.txt was not deleted (bad)
This ER is for 2 enhancements:
I) directoryDelete("s3://mybucket/mydir") should delete the "mydir" virtual directory AND its contents (all files prefixed w/ "mydir/" as well as all descendant virtual directories)
II) directoryCreate() should support creation of these virtual directories (just like S3 Management Console's "Create Folder" button)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3916028
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: