Home > Clouds > AWS > AWS FAQs > How do I create a folder/directory in an S3 bucket?

MindTouch
Copyright (c) 2006-2014 MindTouch Inc.
http://mindtouch.com

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

How do I create a folder/directory in an S3 bucket?

Background Information

I can upload files to my S3 bucket, but I can't figure out how to create new folders/directories inside of my S3 bucket so I can better organize items in my bucket.

 


Answer

Currently, there is no "create new folder" button in the Dashboard's S3 Browser (Clouds -> AWS Global -> S3 Browser).  However, there are a couple different ways to accomplish this task.

  • Download a Firefox plug-in such as "S3 Fox"  Amazon S3 Firefox Organizer (Firefox) to organize your S3 bucket and create subfolders.
  • Move a dummy file in the Dashboard

 

Move a dummy file in the Dashboard

The only way to create a new folder/directory within an S3 bucket is to move a dummy file to a directory that doesn't exist.  When you move the file, the directory that you specified that didn't exist will be created.

Steps
  1. Navigate to your S3 bucket and upload a dummy file.  The type of file/size does not matter. You simply need an item in your S3 bucket that you can move for the purposes of creating a new folder.
  2. Select the dummy file (check the box) and select "Move" from the dropdown menu and click the Apply button.
  3. In the destination path, specify the folder name (e.g. newfolder) that you would like to create.  If you only specify the folder and do not include the dummy file, you will rename the dummy file  ("test.png" will be renamed "newfolder" without a defined file type).
    screen-MoveItem-v1.png
  4. Click Move.  When you return to your S3 bucket, you will see the newly created folder with the dummy file inside.
  5. Add other items to that folder.  NOTE: You cannot delete the dummy file (so that the folder is empty) before adding new files.  If an empty folder is present in your S3 bucket, it will not be shown in the Dashboard, however you will be able to see it in S3 Fox.
  6. Delete the dummy file. 

 

Using S3Fox

If you create a new folder within an S3 bucket, you will need to add at least one file into the folder in order for the Dashboard to see it as a valid directory.  If an empty folder is created, the Dashboard will display an odd reference file (Ex: NewFolderContent_$folder$) until you add a file.  Once you add a file into the new folder, the Dashboard will display it as a browseable directory.   Later you can delete the odd reference files.  

screen-NewFolderEmpty-v1.png

You must to post a comment.
Last Modified
21:26, 16 May 2013

Tags

Classifications

This page has no classifications.

Announcements

None

Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.