Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
List directories in specified directories
ResourceFunction["DirectoryNames"][] lists all subdirectories in the current working directory. | |
ResourceFunction["DirectoryNames"][form] lists all directories in the current working directory whose names match the string pattern form. | |
ResourceFunction["DirectoryNames"][{form1,form2,…}] lists all directories whose names match any of the formi. | |
ResourceFunction["DirectoryNames"][All,dir] lists all directories in the directory dir. | |
ResourceFunction["DirectoryNames"][forms,{dir1,dir2,…}] lists directories with names matching forms in any of the directories diri. | |
ResourceFunction["DirectoryNames"][forms,dirs,n] includes directories that are in subdirectories up to n levels down. |
List the directory names in the $InstallationDirectory:
In[1]:= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
Reset the working directory:
Count the files in the whole installation directory:
In[3]:= | ![]() |
Out[3]= | ![]() |
Find directories that match a string pattern:
In[4]:= | ![]() |
Out[4]= | ![]() |
Plot an 5-hop file system graph starting from a specified directory:
In[6]:= | ![]() |
Out[6]= | ![]() |
Wolfram Language 14.0 (January 2024) or above
This work is licensed under a Creative Commons Attribution 4.0 International License