Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Commit

Permalink
Fixing readFile method name. (#5)
Browse files Browse the repository at this point in the history
* Fixing readFile method name.

* Updating name of task to not conflict with react method.
  • Loading branch information
ekynoxe authored and hnq90 committed Aug 11, 2017
1 parent d7bbe02 commit e8fc91e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions windows/RNFileSystem/RNFileSystemModule.cs
Expand Up @@ -132,7 +132,7 @@ private string absulutePath(string relativePath)
return rootFolder + "\\" + Regex.Replace(relativePath, "/", "\\");
}

private async Task<string> readFile(string relativePath, Storage storage)
private async Task<string> readFromFile(string relativePath, Storage storage)
{
string baseDir = baseDirForStorage(storage);

Expand Down Expand Up @@ -211,7 +211,7 @@ public async void writeToFile(string relativePath, string content, bool isAppend
}

[ReactMethod]
public async void readToFile(string relativePath, string storage, IPromise promise)
public async void readFile(string relativePath, string storage, IPromise promise)
{
if (relativePath == null)
{
Expand All @@ -221,7 +221,7 @@ public async void readToFile(string relativePath, string storage, IPromise promi

try
{
string content = await readFile(relativePath, (Storage)Enum.Parse(typeof(Storage), storage));
string content = await readFromFile(relativePath, (Storage)Enum.Parse(typeof(Storage), storage));
promise.Resolve(content);
}
catch (Exception ex)
Expand Down

0 comments on commit e8fc91e

Please sign in to comment.