MCPcopy Create free account
hub / github.com/itinance/react-native-fs / touch

Method touch

android/src/main/java/com/rnfs/RNFSManager.java:917–926  ·  view source on GitHub ↗
(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

Calls 1

rejectMethod · 0.95

Tested by

no test coverage detected