5 // Created by Mike Mayo on 12/7/10.
6 // The OpenStack project is provided under the Apache 2.0 license.
9 #import <Foundation/Foundation.h>
11 // there isn't really a folder resource in the API. this is an
12 // abstraction to simulate folders based on object names with
14 // example: MyContainer has the following files:
18 // In this case, there would be a folder object for files 2 and 3
20 @interface Folder : NSObject <NSCoding> {
23 NSMutableDictionary *folders;
24 NSMutableDictionary *objects;
25 NSArray *sortedContents;
27 NSMutableDictionary *metadata;
30 @property (nonatomic, retain) NSString *name;
31 @property (nonatomic, retain) Folder *parent;
32 @property (nonatomic, retain) NSMutableDictionary *folders;
33 @property (nonatomic, retain) NSMutableDictionary *objects;
34 @property (readonly, retain) NSArray *sortedContents;
35 @property (nonatomic, retain) NSMutableDictionary *metadata;
38 - (NSArray *)sortedContents;
39 - (NSString *)fullPath;