Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the total size of a directory
ResourceFunction["DirectorySize"][] returns the byte count for the current directory as a quantity. | |
ResourceFunction["DirectorySize"][dir] returns the byte count for dir as a quantity. |
Find the size of the Wolfram System installation directory:
In[1]:= | ![]() |
Out[1]= | ![]() |
Change the directory to the Wolfram System installation directory:
In[2]:= | ![]() |
Out[2]= | ![]() |
The current directory is now the installation directory:
In[3]:= | ![]() |
Out[3]= | ![]() |
DirectorySize with no arguments works on the current directory:
In[4]:= | ![]() |
Out[4]= | ![]() |
Return to the previous directory:
In[5]:= | ![]() |
Out[5]= | ![]() |
Empty directories have zero bytes:
In[6]:= | ![]() |
Out[6]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License