[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is there a way to change the filenames of every item in a folder

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 17
Thread images: 6

File: 88.png (7KB, 349x252px) Image search: [Google]
88.png
7KB, 349x252px
Is there a way to change the filenames of every item in a folder to a random jumble of letters/numbers like pic related?
>>
>>10338
That's not a random jumble, that's the sha1sum of each file.

It is, effectively, a hash table implemented in a filesystem.
>>
File: 1420431399653.png (34KB, 259x394px) Image search: [Google]
1420431399653.png
34KB, 259x394px
>>10338
I too am interested in this question.
>>
>>10338
>>10344
Just write a short program to open a file, save it with a random string as its filename, then delete the original and have it run through every object in a directory.
Alternatively, you could just stop hoarding porn.
>>
File: save.png (1MB, 1429x836px) Image search: [Google]
save.png
1MB, 1429x836px
>>10377
It's worse than that, anon.

I'm hoarding [spoiler]smug[/iwishtherewerespoiler]
>>
>>10396
Why do you want the names to be random?

What problem would this solve?
>>
>>10377
But I don't know how to write programs.
>>
File: 9c8.jpg (28KB, 499x499px) Image search: [Google]
9c8.jpg
28KB, 499x499px
>>10401
When replying, I tend to use the images at the very top of the folder, never the ones at the bottom. To counter that, I would like to change the filename every 3 weeks so that fresh reaction images pop up right when I open up the folder.
>>
>>10396
Oh shit, sorry for delaying you with my shitpost anon, I found 2 potential solutions:
http://www.fileguru.com/Filename-Randomizer/info
https://github.com/craiglotter/Filename-Randomizer
(I didn't test these though)
>>
>>10396
I suddenly have the urge to browse some dank /smug/
...would you be kind enough to upload the folder?
>>
>>10338
you could rename each name to it's hash/md5sum so they are unique
in linux

for i in folder/*.*; do ;
mv "$i" "$(md5sum "$i" | cut -d' ' -f1).${i##*.}";
done

i dunno how in winjews
>>
>>10343
You don't know that it's SHA or if it was, was based on just the filename. Could be some combination of the filename, and size. And no, I'm not doing your homework for you OP.
>>
>>10501
>And no, I'm not doing your homework for you OP.
But my post is worksafe and a request, and last I checked, this is a board for worksafe requests. If you don't fulfill my request I'll have to report you.
>>
File: 1450246882064.png (396KB, 746x588px) Image search: [Google]
1450246882064.png
396KB, 746x588px
>>10447
Here ya go, fggt.

https://mega.nz/#!XFJ1RBra!NpGhfq7qtuo0_Gz3ZK4qLC0sGvLm39rUEXlZ2abotso
>>
>>10493
Well no, that won't work, becase when OP comes to shuffle them they'll get renamed to the exact same thing.

You want to do something like
>find . | sort -R | xargs touch
and then sort them by date.
>>
File: half-smug.jpg (127KB, 678x742px) Image search: [Google]
half-smug.jpg
127KB, 678x742px
>>10554
mfw OP is based af

Also has anyone confirmed either of >>10420 ?
>>
>>10501
It's 32 hex digits long, which is 128 bits, so it's MD5.
Thread posts: 17
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.