Re:Move all photos from Google takeout into one directory
by russellbeattie on Wednesday November 02, 2022 @02:00AM
(#33431868)
If you're using Windows, then I'd probably just use a script like this as well instead of trying to figure out whatever the equivalent of find is.
If you're not using Windows, you should probably learn to use some basic shell commands.
Also, line 19 has a bug.
Also, readdir('foo', {withFileTypes: true}) will return a list of directory entries so you can check the type without doing a stat. Also, sync versions are easier.
If you're not using Windows, you should probably learn to use some basic shell commands.
Also, line 19 has a bug.
Also, readdir('foo', {withFileTypes: true}) will return a list of directory entries so you can check the type without doing a stat. Also, sync versions are easier.