Skip to content

Commit

Permalink
Implement RepositoryReaderContent.IsFolder property. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavics authored Sep 21, 2023
1 parent 721efb4 commit ff93e2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SenseNet.IO/Implementations/RepositoryReaderContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public class RepositoryReaderContent : IContent
public string Type { get; }
public PermissionInfo Permissions { get; set; }

//TODO: implement new API (IsFolder field?)
public bool IsFolder =>
throw new NotImplementedException("IsFolder is not implemented in RepositoryReaderContent.");
public bool IsFolder => true;

public bool HasData => _fields?.Any() ?? false;

Expand Down

0 comments on commit ff93e2d

Please sign in to comment.