migration/20160503_215547_restruct_datastore.php
private function get_old_path(File $file) {
		if (Config::$store_dir === null AND Config::$file_dir === null) {
			throw new \Exception('Set a path first in "Config::$file_dir"');
		}
		$subpath = substr(base_convert($file->md5sum, 16, 10), 0, 3);
		$subpath = implode('/', str_split($subpath)) . '/';

		if (\Skeleton\File\Config::$file_dir !== null) {
			$path = \Skeleton\File\Config::$file_dir . '/' . $subpath . $file->id . '-' . \Skeleton\File\Util::sanitize_filename($file->name);
		} else {
			$path = \Skeleton\File\Config::$store_dir . '/file/' . $subpath . $file->id . '-' . \Skeleton\File\Util::sanitize_filename($file->name);
		}

		return $path;
	}
private function get_old_path(File $file) {
		if (Config::$store_dir === null AND Config::$file_dir === null) {
			throw new \Exception('Set a path first in "Config::$file_dir"');
		}
		$subpath = substr(base_convert($file->md5sum, 16, 10), 0, 3);
		$subpath = implode('/', str_split($subpath)) . '/';

		if (\Skeleton\File\Config::$file_dir !== null) {
			$path = \Skeleton\File\Config::$file_dir . '/' . $subpath . $file->id . '-' . \Skeleton\File\Util::sanitize_filename($file->name);
		} else {
			$path = \Skeleton\File\Config::$store_dir . '/file/' . $subpath . $file->id . '-' . \Skeleton\File\Util::sanitize_filename($file->name);
		}

		return $path;
	}
private function get_old_path ( File $ file ) { if ( Config :: $ store_dir === null AND Config :: $ file_dir === null ) { throw new \ Exception ( 'Set a path first in "Config::$file_dir"' ) ; } $ subpath = substr ( base_convert ( $ file -> md5sum , 16 , 10 ) , 0 , 3 ) ; $ subpath = implode ( '/' , str_split ( $ subpath ) ) . '/' ; if ( \ Skeleton \ File \ Config :: $ file_dir !== null ) { $ path = \ Skeleton \ File \ Config :: $ file_dir . '/' . $ subpath . $ file -> id . '-' . \ Skeleton \ File \ Util :: sanitize_filename ( $ file -> name ) ; } else { $ path = \ Skeleton \ File \ Config :: $ store_dir . '/file/' . $ subpath . $ file -> id . '-' . \ Skeleton \ File \ Util :: sanitize_filename ( $ file -> name ) ; } return $ path ; }
Get the old path

@access private
@param string $md5sum
@return string $path
Get the old path