Skip to content
Snippets Groups Projects
  • Yorhel's avatar
    c077c5be
    Implement JSON file import · c077c5be
    Yorhel authored
    Performance is looking great, but the code is rather ugly and
    potentially buggy. Also doesn't handle hard links without an "nlink"
    field yet.
    
    Error handling of the import code is different from what I've been doing
    until now. That's intentional, I'll change error handling of other
    pieces to call ui.die() directly rather than propagating error enums.
    The approach is less testable but conceptually simpler, it's perfectly
    fine for a tiny application like ncdu.
    c077c5be
    History
    Implement JSON file import
    Yorhel authored
    Performance is looking great, but the code is rather ugly and
    potentially buggy. Also doesn't handle hard links without an "nlink"
    field yet.
    
    Error handling of the import code is different from what I've been doing
    until now. That's intentional, I'll change error handling of other
    pieces to call ui.die() directly rather than propagating error enums.
    The approach is less testable but conceptually simpler, it's perfectly
    fine for a tiny application like ncdu.