function create_paths($path_name)
    {
        if ($path_name[0] == '/') {
            $path_name = mb_substr($path_name, 0, 1);
        }
        $elements = explode('/', $path_name, -1);
        $build_path = "";
        foreach ($elements as $idx => $val) {
            if (!$build_path) {
                $build_path = $val;
            } else {
                $build_path .= "/" . $val;
            }
            $obj = new CF_Object($this, $build_path);
            $obj->content_type = "application/directory";
            $obj->write(".", 1);
        }
    }
function create_paths($path_name)
    {
        if ($path_name[0] == '/') {
            $path_name = mb_substr($path_name, 0, 1);
        }
        $elements = explode('/', $path_name, -1);
        $build_path = "";
        foreach ($elements as $idx => $val) {
            if (!$build_path) {
                $build_path = $val;
            } else {
                $build_path .= "/" . $val;
            }
            $obj = new CF_Object($this, $build_path);
            $obj->content_type = "application/directory";
            $obj->write(".", 1);
        }
    }
function create_paths ( $ path_name ) { if ( $ path_name [ 0 ] == '/' ) { $ path_name = mb_substr ( $ path_name , 0 , 1 ) ; } $ elements = explode ( '/' , $ path_name , - 1 ) ; $ build_path = "" ; foreach ( $ elements as $ idx => $ val ) { if ( ! $ build_path ) { $ build_path = $ val ; } else { $ build_path .= "/" . $ val ; } $ obj = new CF_Object ( $ this , $ build_path ) ; $ obj -> content_type = "application/directory" ; $ obj -> write ( "." , 1 ) ; } }
Helper function to create "path" elements for a given Object name

Given an Object whos name contains '/' path separators, this function
will create the "directory marker" Objects of one byte with the
Content-Type of "application/folder".

It assumes the last element of the full path is the "real" Object
and does NOT create a remote storage Object for that last element.
Helper function to create path elements for a given Object name