Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files & Folders Navigator #22

Closed
arxdsilva opened this issue Oct 30, 2016 · 1 comment
Closed

Files & Folders Navigator #22

arxdsilva opened this issue Oct 30, 2016 · 1 comment
Milestone

Comments

@arxdsilva
Copy link
Member

arxdsilva commented Oct 30, 2016

To keep up with the project we need a func that READs and stores all Dir & Files. It might be a Map of Maps:

// Output:
map[
   "Dir": [
      "dir1": [
         "dir1Dirs": [
            "dir1DirsD": [],
            "dir1DirsFiles": [],
         ], 
         "dir1Files": [],
      ], 
      "dir2": [...], 
      "dir3": [...], 
      "dir4": [...], 
      ],
   Files: [
      "a",
      "b",
      "c",
   ],
]
  • What we need is nested slices (or map) that gets It's folders and append them into the original folders;
    Example (pythonic):
slice_of_folders = [
[folderA, [folderAa, [more folders], folderAb, [...]]],
[folderB, [...]],
.
.
.
]

Helpful links:
http://stackoverflow.com/questions/20115327/golang-rename-the-directory-and-partial-file-renaming
https://golang.org/pkg/path/filepath/#Walk

@arxdsilva arxdsilva modified the milestone: v0.0.3 Oct 30, 2016
@arxdsilva arxdsilva self-assigned this Oct 30, 2016
@arxdsilva arxdsilva modified the milestones: v0.0.3, v0.1 Oct 30, 2016
@arxdsilva arxdsilva removed their assignment Oct 30, 2016
@arxdsilva arxdsilva modified the milestones: v0.1, v0.2 Nov 21, 2016
@arxdsilva
Copy link
Member Author

I think #32 is a better approach to this situation, so I'll close this and work on that issue.

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

No branches or pull requests

1 participant