Skip to main content

A File and Directory Usage Graph

  • Chapter
  • First Online:
Perl 6 Fundamentals
  • 1166 Accesses

Abstract

You bought a shiny new 2TB disk just a short while ago and you’re already getting low disk space warnings. What’s taking up all that space?

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://docs.perl6.org/routine/dir

  2. 2.

    https://docs.perl6.org/type/IO\protect\char"0024\relaxCOLON\protect\char"0024\relaxCOLONPath

  3. 3.

    Note that .s on directories used to throw an exception in older Rakudo versions. You must use Rakudo 2017.02 or newer for this to work; if you are stuck on an older version of Rakudo, you could hard-code the size of a directory to a typical block size, like 4096 bytes. It typically won’t skew your results too much.

  4. 4.

    https://docs.perl6.org/routine/assuming

  5. 5.

    https://en.wikipedia.org/wiki/Divide_and_conquer_algorithm

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Moritz Lenz

About this chapter

Cite this chapter

Lenz, M. (2017). A File and Directory Usage Graph. In: Perl 6 Fundamentals . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2899-9_10

Download citation

Publish with us

Policies and ethics