All pastes #131866 Raw Edit

synth7

public text v1 · immutable
#131866 ·published 2006-08-14 23:48 UTC
rendered paste body
alias songs {
  if ($isid) && ($1-) {
    var %songs $calc($findfile(d:\music\ $+ $1- $+ ,*.mp3,0) + $findfile(d:\music\ $+ $1- $+ ,*.m4a,0) + $findfile(d:\music\ $+ $1- $+ ,*.flac,0) + $findfile(d:\music\ $+ $1- $+ ,*.ape,0) + $findfile(d:\music\ $+ $1- $+ ,*.ogg,0))
    return %songs
  }
  elseif (!$isid) {
    var %songs $calc($findfile(d:\music\,*.mp3,0) + $findfile(d:\music\,*.m4a,0) + $findfile(d:\music\,*.flac,0) + $findfile(d:\music\,*.ape,0) + $findfile(d:\music\,*.ogg,0))
    var %albms $calc($finddir(d:\music,*,0,2) - $calc($finddir(d:\music,*,0,1)-1))
    describe # has $+(,%songs,) songs on $+(,%albms,) albums ( $+ $foldersize(d:\music,g) $+ GB $+ )
  }
}