Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 19991

Questions on obtaining files and directory structure/information and manipulating the said structure/information, searching/renaming particular files in a directory, etc., in an OS independent manner.

7 votes
2 answers
362 views

how to get the size of a directory(total size of all files under this directory or its subdi...

I use Mathematica10 in my Win7 and I want to estimate the amount of disk space occupied by each dirs. I try the code(the code was copied from How do I find the amount of free space on disk?, actually …
Harry's user avatar
  • 2,745
5 votes
1 answer
186 views

FileNames becomes extremely slow when there are large number of files under a directory

I have a directory on my portable hard drive, with around 350000 files under it (there is no subdirectory, only files). I want to get all the file dirs so use filedirs=FileNames["*",mydir] However, …
Harry's user avatar
  • 2,745
3 votes

FileNames becomes extremely slow when there are large number of files under a directory

Under windows system this is the way to get huge number of filenames under a directory: filenamesFast[dir_]:= Module[{txtname="\\temp-alldirs.txt"}, Run["dir \""<>dir<>"\" /b >\""<>dir<>txtname<>"\""] …
Harry's user avatar
  • 2,745
2 votes
0 answers
106 views

How to get the subdirectory of a ftp weblink?

For example, I can use FileNames["*",dir] to get all subdirectory under dir if dir is some directory of my local computer. Suppose that I want to get all subdirectory of a ftp on internet, what sho …
Harry's user avatar
  • 2,745