Skip to content

fix Readdir(), Name() and New() to Walk properly#60

Closed
Songmu wants to merge 5 commits intorakyll:masterfrom
Songmu:fix-fswlk
Closed

fix Readdir(), Name() and New() to Walk properly#60
Songmu wants to merge 5 commits intorakyll:masterfrom
Songmu:fix-fswlk

Conversation

@Songmu
Copy link
Contributor

@Songmu Songmu commented Mar 3, 2019

I correspond to the following problems in this pull request.

  • In Readdir pick up only the entries just under the directory and do not follow grandchild
  • support deep directory
    • go up directories recursively and assign its directory to files in New() in order to care deep directory
  • stat.Name() should return basename conventionally for recursive walking

This fix is similar to #59, it is better than that as the modification is less.

close #59.

@Songmu Songmu changed the title fix Readdir() and Name() to Walk properly fix Readdir(), Name() and New() to Walk properly Mar 3, 2019
rakyll pushed a commit that referenced this pull request Mar 20, 2019
Follow on #60.

The Readdir() should support positive count in order to return the specified counts of files.

For it, I defined statikFS.dirs and httpFile.dirIdx for managing the internal state and use it inside Readdir().
@Songmu Songmu closed this Mar 21, 2019
@Songmu Songmu deleted the fix-fswlk branch March 21, 2019 14:36
ekanna pushed a commit to ekanna/statik that referenced this pull request Sep 12, 2019
Follow on rakyll#60.

The Readdir() should support positive count in order to return the specified counts of files.

For it, I defined statikFS.dirs and httpFile.dirIdx for managing the internal state and use it inside Readdir().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant