lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
commit | author | age
e0ec42 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #import <FBSDKCoreKit_Basics/FBSDKLinking.h>
10
11 #import <Foundation/Foundation.h>
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 /**
16  Internal type exposed to facilitate transition to Swift.
17  API Subject to change or removal without warning. Do not use.
18
19  @warning INTERNAL - DO NOT USE
20  */
21 NS_SWIFT_NAME(_FileManaging)
22 @protocol FBSDKFileManaging
23
24 - (BOOL)fb_createDirectoryAtPath:(NSString *)path
25      withIntermediateDirectories:(BOOL)createIntermediates
26                       attributes:(NSDictionary<NSFileAttributeKey, id> *_Nullable)attributes
27                            error:(NSError *_Nullable *)error;
28
29 - (BOOL)fb_fileExistsAtPath:(NSString *)path;
30
31 - (BOOL)fb_removeItemAtPath:(NSString *)path
32                       error:(NSError *_Nullable *)error;
33
34 - (NSArray<NSString *> *)fb_contentsOfDirectoryAtPath:(NSString *)path
35                                                 error:(NSError *_Nullable *)error
36 __attribute__((swift_error(nonnull_error)));
37
38 @end
39
40 FB_LINK_CATEGORY_INTERFACE(NSFileManager, FileManaging)
41 @interface NSFileManager (FileManaging) <FBSDKFileManaging>
42
43 @end
44
45 NS_ASSUME_NONNULL_END