1. 09 7月, 2018 1 次提交
    • unixfs: add a directory interface · 7d531c00
      Add a UnixFS `Directory` that hides implementation details and helps to
      distinguish *what* is a UnixFS directory.
      
      Replace the `unixfs.io.Directory` structure that contained the HAMT and basic
      directory implementations (through inner pointers) with an interface containing
      the same methods. Implement those methods in two clearly distinct structures for
      each implementation (`BasicDirectory` and `HAMTDirectory`) avoiding pointer
      logic and clearly differentiating which implementation does what.
      
      The potential basic to HAMT transition was being hidden behind the `AddChild`
      call at the UnixFS layer (changing one implementation pointer  with the other
      one), it is now being explicitly done at the MFS layer.
      
      Rename the `dirbuilder.go` file to `directory.go` and change the `Directory` MFS
      attribute `dirbuilder` to `unixfsDir` to be consistent.
      
      License: MIT
      Signed-off-by: 's avatarLucas Molas <schomatis@gmail.com>
      Lucas Molas 提交于
  2. 05 7月, 2018 5 次提交
  3. 30 6月, 2018 1 次提交
  4. 29 6月, 2018 1 次提交
  5. 28 6月, 2018 3 次提交
  6. 27 6月, 2018 4 次提交
  7. 26 6月, 2018 6 次提交
  8. 22 6月, 2018 1 次提交
  9. 21 6月, 2018 1 次提交
  10. 18 6月, 2018 1 次提交
  11. 17 6月, 2018 4 次提交
  12. 16 6月, 2018 2 次提交
  13. 15 6月, 2018 3 次提交
  14. 14 6月, 2018 1 次提交
  15. 13 6月, 2018 6 次提交