Back to Software

Size Representative Directory Browser

16 Aug 2010
Progress: Completed

One day I felt like giving this a go. Essentially it's a file browser where the name of a folder is proportional to how much it contains.

My first attempt is a script which browses one's music folder, reading how many tracks there are by each artist and displaying it something like this. (Note, there's very little correlation between the number of tracks I have by an artist, and how much I like said artist.)

6th Awakening 7 Notas, 7 Colores 808 State A-Ha Aardtmann op Vuurtopberg Aberdeen Abhorrence Abraksas ABRSM Acid Bath Acid King ACM Music Adolescents Adriano Celentano Aes Dana (metal) Aes Dana (trance) Aesop Rock Agalloch Agents of Oblivion Airbourne Alestorm Alexander Baker, Clair Marlo Alien Ant Farm Amanda Palmer Amon Amarth An Endless Sporadic Anthrax Apocolyptica Artiste inconnu Audioslave Avenged Sevenfold Basement Jaxx BBC Radio Collection Beastie Boys Berty Wooster Best Air Guitar Album In The World...ever Vol.1, T [UK] Disc 1 Best Air Guitar Album In The World...ever Vol.1, T [UK] Disc 2 Biffy Clyro Bill Withers Billy Talent Bitchney Spears Black Eyed Peas Black Sabbath Black Stone Cherry Blink 182 Blink-182 Bloomtown Rats Blur Bob Marley Bob Marley & The Wailers Bowling for Soup Bruce Springsteen Buffy The Vampire Slayer Bullet for my valentine Burt Bacharach C+C Music Factory Clivilles & Cole Calexico Carl Douglas Carl Hancock Rux Carpenters Chet Atkins Chet baker Children Of Bodom Chris Cornell Chris Korda Chris Moyles Chuck Berry Clarkson Rocks- Full Throttle Anthems Clint Mansell Coheed & Cambria Coldplay Cool n create Cornershop Counting Crows Creative Technology Ltd Curtis Mayfield Cypress Hill Damian _Jr. Gong_ Marley Dan Rathbun Danny Elfman Darude Dave Matthews Band David Goldsmith and Andrew Britton David Hasselhoff Dayjo De La Soul Dead Kennedys Deathstars Deee-Lite Deftones Del tha Funkee Homosapien Deltron 3030 Depeche Mode Devildriver Dido Dir en grey Dire Straits Disturbed DMX Don Thomas Donna Summer Dr SK Chew DragonForce Dread Zeppelin Dream Theater Dropkick Murphys Dååth Electric Six Eminem Ennio Morricone Enter Shikari Eric Clapton Eric Johnson Essential Sounds Europe Faith No Man Faith No More Faithless Family Fatboy Slim Feeder Fejd Fishbone Flobots Focus Foo Fighters Foreigner Fort Minor Four Seasons Four Tet Frank Sinatra Frank Zappa Frankie Goes to Hollywood Freestyle Fuck yuo I am a robot Funeral For A Friend Gavin DeGraw Gene McDaniels Ghostbusters Glastonbury 2003 Goldfinger Goldie Lookin' Chain Good Charlotte Gorillaz Graeme Norgate Green Day Groove Armada Happy Mondays Harry Nilsson Hayseed Dixie Heaven & Hell Henry Mancini Herb Alpert Hero OST Hilltop Hoods Hollywood Music holst Hot Chip Hot Chocolate Humanoid Hybrid - Morning Sci-Fi - 2003 Iggy Pop In Flames Infectious Grooves Iron Maiden Israel Kamakawiwo'ole Jack Johnson Jackie Brown Soundtrack James Brown James Taylor Jamiroquai Jerry Reed Jethro Tull Jimi Hendrix Joe Jackson Johann Strauss II John Barry John Parr John Sebastian John Williams Johnny Cash Jonathan Richman & The Modern Lovers Josh José González Junior Senior Kanye West Kasabian Keane Kernkraft 400 KillBill1OST KillBill2OST Killswitch Engage King Missile Korn Kraftwerk Kultur Shock Kyuss Lamb of God LCD Soundsystem Led Zeppelin Lemon Demon Lenny Kravitz Less Than Jake Lighthouse Family Limp Bizkit Linkin Park London Underground Loss of a child Lostprophets Ludovico Einaudi Machine Head Machine Head Blackening Madina Lake Madness Mama Earth Manic Street Preachers Manic Subsidal Marc Cohn Marc Seales, composer. New Stories. Erni Marilyn Manson Massive Attack Mastodon Mat Weddle MC Hammer Megadeth Metallica MGMT Michael Nyman Moby modern strings Monster Magnet Monty Python Motorhead MP3s Mr. Bungle Mudvayne Murderdolls Muse My Chemical Romance My Playlists Naive Napalm Death Nickelback Nile Nine Inch Nails Nintendo Nirvana Nobou Uematsu Now That's What I Call Music Vol.49 [UK] Disc 2 Now, Vol. 47 [UK] Disc 1 Now, Vol. 47 [UK] Disc 2 Now, Vol. 48 [UK] Disc 1 Now, Vol. 48 [UK] Disc 2 Now, Vol. 49 [UK] Disc 1 Now, Vol. 53 [UK] Disc 1 Now, Vol. 53 [UK] Disc 2 Nubuo Uematsu Oakenfold Oasis Oldboy OST Opeth OPM Original Soundtrack Outkast P.O.D_ Panjabi MC Pantera Papa Roach Patrick Street Pearl Jam Pendulum Pennywise Pet Shop Boys Phil Collins Phildel Pink Floyd Pixies Placebo ponyrape Powerglove Priestess Probot Prodigy Public Enemy Puddle Of Mudd Pulp Pulp Fiction - Soundtrack Queen Queens Of The Stone Age R.E.M_ Rachel Stevens Radiohead Rage Against The Machine Rammstein Ray LaMontagne Red Hot Chili Peppers Reel 2 Reel Reel Big Fish Regina Spektor Reservoir Dogs Richie Valens Roadrunner United Rob Dougan Rob Zombie Rodrigo Y Gabriela Sammy Hagar Santana Seasick Steve Seasick Steve & The Level Devils Seether Semisonic Seu Jorge Shirley Bassey Simon & Garfunkel Sister Nancy Sister Sledge Slayer Slipknot Slipknot (thrash) SMASH MOUTH SMB Underground Remix Snot Soil Soulfly Soundgarden Soundtrack Spastic Ink Spike Jones & His City Slickers Stereophonics Stone Sour Sugar Hill Gang SuidAkrA Sum 41 Supergrass Supertramp Suzuki System of a Down Team America World Police Techno Syndrome Tenacious D The Animals The Beach Boys The Beatles The Bee Gees The Blues Brothers The Brothers Four The Calling The Chemical Brothers The Chordettes The Clash The Commodores The Dandy Warhols The Darkness The Dream Academy The Eagles The Electric Light Orchestra The Feeling The Flaming Lips The Good, The Bad & The Queen The Human League The Killers The Kingsmen The Mighty Boosh The Noveltones The Offspring The Penguin Cafe Orchestra The Pipettes The Prodigy The Rabbit Joint The Rasmus The Rolling Stones The Shawshank Redemption The Simpsons The Sims The Soggy Bottom Boys The Specials The Stranglers The Supremes The Troggs The Undertones The Velvet Underground The Verve The Watchmen - 2009 The Who The Zutons Theory Of A Deadman They Might Be Giants Thin Lizzy Thursday Timesplitters Tom Jones Tom T-Bone Stankus Toploader Trans-Siberian Orchestra Travis Trevor Dunn's Trio-Convulsant Triangle Theory Télépopmusik UB40 Ugly Kid Joe UN Owen Was Her Unknown Artist VA-This_Is_England__OST_-07 Val Doonican Van Morrison Vanilla Sky - Original Soundtrack Varios interpretes Various Artists Virgin Radio CD1 Virgin Radio CD2 Walter Murphy War Wayd Wednesday 13 White Zombie Whitey Williams, Andy Wintersun Within Temptation Wolfgang Amadaus Mozart Yes ZEN ZP Boy Wonder [Spunge] {Instrumental} DJ Clue Ünloco

Or in order of size:

Red Hot Chili Peppers Dir en grey Metallica Korn Marilyn Manson Faith No More Slipknot SuidAkrA System of a Down Less Than Jake Lamb of God Machine Head The Offspring Jethro Tull Opeth The Prodigy The Mighty Boosh Outkast Gorillaz BBC Radio Collection In Flames Tenacious D Disturbed Timesplitters Anthrax The Beatles Devildriver Mastodon Feeder Various Artists Queens Of The Stone Age Hayseed Dixie Rammstein The Beach Boys Blink-182 Killswitch Engage Blur Unknown Artist The Rolling Stones Linkin Park Eminem Nirvana Nintendo Bob Marley UB40 Stereophonics Amon Amarth Clint Mansell Slayer Mr. Bungle Thin Lizzy Children Of Bodom The Clash Public Enemy Fatboy Slim Good Charlotte ABRSM Jack Johnson ZP Boy Wonder Soundgarden Led Zeppelin Black Sabbath Manic Street Preachers Bruce Springsteen Pantera Regina Spektor Green Day Jamiroquai Wednesday 13 [Spunge] Muse Rob Zombie Pink Floyd Placebo Apocolyptica Rob Dougan The Calling DMX Seasick Steve & The Level Devils VA-This_Is_England__OST_-07 James Taylor Foo Fighters Oldboy OST The Chemical Brothers Monty Python KillBill1OST Groove Armada Bob Marley & The Wailers Seasick Steve Rage Against The Machine Megadeth Agalloch Beastie Boys Buffy The Vampire Slayer Best Air Guitar Album In The World...ever Vol.1, T [UK] Disc 2 The Shawshank Redemption 808 State Deltron 3030 Spike Jones & His City Slickers Best Air Guitar Album In The World...ever Vol.1, T [UK] Disc 1 Jimi Hendrix Four Tet Van Morrison Moby Audioslave Josh King Missile Queen Fejd Eric Clapton Pennywise Enter Shikari Jackie Brown Soundtrack Pulp Vanilla Sky - Original Soundtrack Agents of Oblivion Fort Minor Reservoir Dogs Massive Attack Focus Pulp Fiction - Soundtrack Faithless Black Eyed Peas Oasis Murderdolls Snot Pendulum KillBill2OST Lostprophets Supertramp Frank Zappa Family Cypress Hill Damian _Jr. Gong_ Marley Coldplay John Williams Limp Bizkit Napalm Death Sum 41 Alestorm Deathstars Kyuss Monster Magnet Radiohead My Chemical Romance The Stranglers Puddle Of Mudd Goldie Lookin' Chain Loss of a child Pearl Jam Soil Kasabian Alien Ant Farm Nubuo Uematsu Hero OST Iron Maiden Suzuki Gavin DeGraw Four Seasons Now, Vol. 48 [UK] Disc 2 The Watchmen - 2009 Dido The Good, The Bad & The Queen The Feeling Fuck yuo I am a robot Hybrid - Morning Sci-Fi - 2003 Funeral For A Friend The Zutons Marc Cohn The Killers ACM Music Deftones Jonathan Richman & The Modern Lovers Humanoid Kraftwerk R.E.M_ Counting Crows Ray LaMontagne Heaven & Hell Now, Vol. 53 [UK] Disc 2 Clarkson Rocks- Full Throttle Anthems Madness LCD Soundsystem DragonForce The Sims Wayd Rodrigo Y Gabriela Abhorrence ZEN Acid Bath Chuck Berry Essential Sounds Machine Head Blackening Manic Subsidal Spastic Ink Slipknot (thrash) Berty Wooster White Zombie Kultur Shock Virgin Radio CD2 Acid King Now, Vol. 49 [UK] Disc 1 The Specials Seu Jorge Fishbone Joe Jackson Ennio Morricone Virgin Radio CD1 Trevor Dunn's Trio-Convulsant Glastonbury 2003 Lighthouse Family The Bee Gees Toploader Creative Technology Ltd Dread Zeppelin Priestess Herb Alpert Hot Chip 6th Awakening Aesop Rock Now That's What I Call Music Vol.49 [UK] Disc 2 P.O.D_ Ludovico Einaudi Nile Dayjo Now, Vol. 47 [UK] Disc 1 MP3s Reel Big Fish Aardtmann op Vuurtopberg Travis Pet Shop Boys Nickelback Now, Vol. 47 [UK] Disc 2 The Soggy Bottom Boys Trans-Siberian Orchestra Abraksas The Simpsons Soundtrack Frankie Goes to Hollywood Panjabi MC Infectious Grooves Naive Johnny Cash Faith No Man Black Stone Cherry The Blues Brothers Phil Collins The Darkness Depeche Mode The Electric Light Orchestra Keane Chet baker Triangle Theory Avenged Sevenfold Aes Dana (trance) Sister Sledge Simon & Garfunkel Semisonic SMB Underground Remix Shirley Bassey Soulfly SMASH MOUTH Sister Nancy The Human League Télépopmusik Ugly Kid Joe UN Owen Was Her Val Doonican Tom T-Bone Stankus Tom Jones The Who Theory Of A Deadman They Might Be Giants Thursday Varios interpretes Walter Murphy Wolfgang Amadaus Mozart Yes {Instrumental} DJ Clue Ünloco Within Temptation Wintersun War Whitey Williams, Andy The Verve The Velvet Underground The Chordettes The Commodores The Dandy Warhols The Dream Academy The Brothers Four The Animals Sugar Hill Gang Supergrass Team America World Police Techno Syndrome The Eagles The Flaming Lips The Rabbit Joint The Rasmus The Supremes The Troggs The Pipettes The Penguin Cafe Orchestra Seether The Kingsmen The Noveltones Stone Sour Madina Lake Dave Matthews Band Darude David Goldsmith and Andrew Britton David Hasselhoff Dead Kennedys De La Soul Danny Elfman Dan Rathbun Coheed & Cambria Chris Moyles Cool n create Cornershop Curtis Mayfield Deee-Lite Del tha Funkee Homosapien Eric Johnson Electric Six Europe Flobots Foreigner Dååth Dropkick Murphys Don Thomas Dire Straits Donna Summer Dr SK Chew Dream Theater Chris Korda Chris Cornell Amanda Palmer Alexander Baker, Clair Marlo An Endless Sporadic Artiste inconnu Biffy Clyro Basement Jaxx Airbourne Aes Dana (metal) A-Ha 7 Notas, 7 Colores Aberdeen Adolescents Adriano Celentano Bill Withers Billy Talent Carl Douglas Calexico Carl Hancock Rux Carpenters Chet Atkins C+C Music Factory Clivilles & Cole Burt Bacharach Blink 182 Bitchney Spears Bloomtown Rats Bowling for Soup Bullet for my valentine Frank Sinatra Freestyle Nobou Uematsu Nine Inch Nails Now, Vol. 48 [UK] Disc 1 Now, Vol. 53 [UK] Disc 1 OPM Oakenfold Mudvayne Motorhead MC Hammer Mat Weddle MGMT Michael Nyman modern strings Original Soundtrack Papa Roach Reel 2 Reel Rachel Stevens Richie Valens Roadrunner United Sammy Hagar Prodigy Probot Phildel Patrick Street Pixies ponyrape Powerglove Marc Seales, composer. New Stories. Erni Mama Earth Hollywood Music Hilltop Hoods holst Hot Chocolate Iggy Pop Henry Mancini Harry Nilsson Ghostbusters Gene McDaniels Goldfinger Graeme Norgate Happy Mondays Santana James Brown José González Jerry Reed Junior Senior Kanye West Kernkraft 400 John Sebastian John Parr London Underground Johann Strauss II John Barry Lenny Kravitz Lemon Demon My Playlists Israel Kamakawiwo'ole The Undertones

This is just running on the file tree of the music folder, not reading track data from the actual files.

Just because I can, I got the program to display the first Google Images result for each band too. This takes much longer to run, of course, and also tends to slow the browser down a lot, so here's a screenshot.

Screenshot of the multitude of band images in decreasing size

The first Google result isn't always the best one, as you can see, but I didn't want to spend too much time refining this bit.

To get this to run as a full file browser it needed to work quicker. Normally directories don't tell you their size as it takes too long to calculate. I got around this by making a cache file which preprocesses directory sizes so the file browser can work almost instantly.

As a demo I've put up this page which you can just look around the images folder on this site. You'll have to take my word that it's a lot more impressive when there's more to look around in.

Browser Demo

You can download the source and run it on your own server if you like, or on your hard disk if you have PHP running locally. It's rather entertaining.

Screenshot of the browser

The next step of course was to merge this with my previous file manager, so we have all the functionality we need along with the lovely interface.

Download the source