Rev 5 | Rev 12 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 11 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | function _rec($directory) { |
25 | function _rec($directory) { |
26 | if (!is_dir($directory)) { |
26 | if (!is_dir($directory)) { |
27 | die("Invalid directory path $directory\n"); |
27 | die("Invalid directory path $directory\n"); |
28 | } |
28 | } |
29 | 29 | ||
- | 30 | if ((basename($directory) == '.') || (basename($directory) == '..')) { |
|
- | 31 | $md5_file = rtrim($directory,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR. |
|
- | 32 | basename(realpath($directory)).'.md5'; |
|
- | 33 | ||
- | 34 | } else { |
|
- | 35 | $md5_file = rtrim($directory,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR. |
|
30 | $md5_file = $directory.'/'.basename($directory).'.md5'; |
36 | basename($directory).'.md5'; |
- | 37 | } |
|
31 | 38 | ||
32 | if (file_exists($md5_file)) { |
39 | if (file_exists($md5_file)) { |
33 | $existing_files = md5_get_files($md5_file); |
40 | $existing_files = md5_get_files($md5_file); |
34 | } else { |
41 | } else { |
35 | $existing_files = array(); |
42 | $existing_files = array(); |