Method
touch
(String filepath, double mtime, double ctime, Promise promise)
Source from the content-addressed store, hash-verified
| 915 | } |
| 916 | |
| 917 | @ReactMethod |
| 918 | public void touch(String filepath, double mtime, double ctime, Promise promise) { |
| 919 | try { |
| 920 | File file = new File(filepath); |
| 921 | promise.resolve(file.setLastModified((long) mtime)); |
| 922 | } catch (Exception ex) { |
| 923 | ex.printStackTrace(); |
| 924 | reject(promise, filepath, ex); |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | @ReactMethod |
| 929 | public void getAllExternalFilesDirs(Promise promise){ |
Callers
nothing calls this directly
Tested by
no test coverage detected