Skip to content

Commit

Permalink
[TIMOB-25231] Append trailing slash to the end of directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed May 15, 2018
1 parent adee58f commit 5c44d77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public long spaceAvailable()

public String toURL()
{
return TiC.URL_ANDROID_ASSET_RESOURCES + path;
return TiC.URL_ANDROID_ASSET_RESOURCES + path + (isDirectory() ? "/" : "");
}

public long size()
Expand Down Expand Up @@ -273,6 +273,7 @@ private void fetchStats()
this.typeDir = false;
this.typeFile = true;
this.exists = true;

} else {
this.typeFile = false;

Expand Down

0 comments on commit 5c44d77

Please sign in to comment.