Procedural File: sort_files.inc
Source Location: /bin/sort_files.inc
Page Details:
Includes:
require_once($prefix.'/lib/init.php') [line 43]
sort_clean_name [line 178]
void sort_clean_name(
$string)
|
|
sort_clean_name We have to have some special rules here This is run on every individual element of the search Before it is put togeather, this removes / and \ and also once I figure it out, it'll clean other stuff
Parameters
sort_element_name [line 145]
void sort_element_name(
$key)
|
|
sort_element_name gets the name of the %? in a yea.. too much beer
Parameters
sort_find_home [line 95]
void sort_find_home(
$song, $sort_pattern, $base)
|
|
sort_find_home Get the directory for this file from the catalog and the song info using the sort_pattern takes into account various artists and the alphabet_prefix
Parameters
|
$song |
|
|
$sort_pattern |
|
|
$base |
|
sort_move_file [line 201]
void sort_move_file(
$song, $fullname)
|
|
sort_move_file All this function does is, move the friggin file and then update the database We can't use the rename() function of PHP because it's functionality depends on the current phase of the moon, the alignment of the planets and my current BAL Instead we cheeseball it and walk through the new dir structure and make sure that the directories exist, once the dirs exist then we do a copy and unlink.. This is a little unsafe, and as such it verifys the copy worked by doing a filesize() before unlinking.
Parameters
|