Skip to content

Commit

Permalink
fix for issue mikechambers#166 from original fork.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangupta authored and rzubek committed Mar 23, 2013
1 parent 7e362d7 commit 91155c3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/com/adobe/net/URI.as
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ package com.adobe.net
* documation on protected members and protected fuctions.</p>
*
* @langversion ActionScript 3.0
* @playerversion Flash 9.0
* @playerversion Flash 9.0
*/
public class URI
{
Expand Down Expand Up @@ -644,20 +644,19 @@ package com.adobe.net
* @return true if this URI represents a directory resource, false
* if this URI represents a file resource.
*/
public function isDirectory() : Boolean
{
if (_path.length == 0)
public function isDirectory() : Boolean {
if (_path.length == 0) {
return false;
}

return (_path.charAt(path.length - 1) == '/');
return (_path.charAt(_path.length - 1) == '/');
}


/**
* Is this URI a hierarchical URI? URI's can be
*/
public function isHierarchical() : Boolean
{
public function isHierarchical() : Boolean {
return hierState;
}

Expand Down

0 comments on commit 91155c3

Please sign in to comment.