This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
tl:dr
reasons against ...
- not posh-ish [grin]
- script maintenance in general purpose environments
- returns a string instead of a fileinfo or dirinfo object
- [killer negative] the only OnError action is STOP
this makes it pretty useless in a general purpose environment without custom error handling. - doesn't REALLY grab anything until you try to use it [thanks to u/da_chicken]
returns a "FileSystemEnumerableIterator`1" type that has almost no info until you try to use it. plus, it re-gets that info each time you use it.
reason for ...
- fast
100k files on an HDD = 18 seconds for GCI, 5 seconds for SIOD
[corrected using info pointed out by u/da_chicken]
100k files on an HDD = 18 seconds for GCI, 0.0005 seconds for SIOD
howdy y'all,
a post by ihaxr got me to playing with SIOD for getting files. for giggles, i timed it compared to Get-ChildItem
and it's 44k times faster.
yes, forty four thousand.
here's the post [and code] ...
https://ww.reddit.com/r/PowerShell/comments/5h8smm/need_help_comparing_files_to_listtxt_and_copying/dayv8le/
so now i am wondering if anyone has done a cmdlet using that. perhaps something like Get-FileSysItems
. tried searching and found nothing, but that only means my search-fu aint up to snuff.
would some kind person please point me to where someone has done the work - and shared it?
i mean, otherwise i would need to write it myself! eeewwww ... [grin]
take care,
lee
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...