mirror of
https://github.com/status-im/react-native-fs.git
synced 2026-08-31 12:01:13 +00:00
rename exist to exists
This commit is contained in:
@@ -73,7 +73,7 @@ public class RNFSManager extends ReactContextBaseJavaModule {
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void exist(String filepath, Callback callback) {
|
||||
public void exists(String filepath, Callback callback) {
|
||||
try {
|
||||
File file = new File(filepath);
|
||||
callback.invoke(null, file.exists());
|
||||
|
||||
Reference in New Issue
Block a user