@@ -99,6 +99,17 @@ NS_ASSUME_NONNULL_BEGIN
9999- (NSUInteger )compact : (NSUInteger )sizeInBytes error : (NSError * __autoreleasing*)error ;
100100
101101
102+ // / Executes a block with a unique temporary directory.
103+ // /
104+ // / A new temporary subdirectory URL is created inside the receiver’s designated
105+ // / base directory. The directory is passed to the block, which can use it to
106+ // / perform temporary file operations. After the block finishes executing,
107+ // / the directory and its contents are removed.
108+ // /
109+ // / @param block A block to execute. The block receives a unique URL.
110+ - (void )withTemporaryDirectory : (void (^)(NSURL * directoryURL))block ;
111+
112+
102113// / Purges the assets storage. The assets are moved to the trash directory and are asynchronously
103114// / deleted.
104115// /
@@ -117,6 +128,12 @@ NS_ASSUME_NONNULL_BEGIN
117128// / contents are deleted asynchronously.
118129@property (copy , readonly , nonatomic ) NSURL * trashDirectoryURL;
119130
131+
132+ // / The staging directory URL, used to hold assets that are being prepared or processed
133+ // / before they are moved into their final location. The contents of this directory
134+ // / are temporary and may be cleared when no longer needed.
135+ @property (copy , readonly , nonatomic ) NSURL * stagingDirectoryURL;
136+
120137// / The file manager.
121138@property (strong , readonly , nonatomic ) NSFileManager * fileManager;
122139
0 commit comments