concrete/src/File/Filesystem.php
public function create()
    {
        $type = NodeType::getByHandle('file');
        if (!is_object($type)) {
            NodeType::add('file');
        }
        $type = NodeType::getByHandle('file_folder');
        if (!is_object($type)) {
            NodeType::add('file_folder');
        }
        $type = NodeType::getByHandle('search_preset');
        if (!is_object($type)) {
            NodeType::add('search_preset');
        }
        $type = TreeType::getByHandle('file_manager');
        if (!is_object($type)) {
            TreeType::add('file_manager');
        }

        $manager = FileManager::get();
        if (!is_object($manager)) {
            $manager = FileManager::add();
        }

        return $manager;
    }
public function create()
    {
        $type = NodeType::getByHandle('file');
        if (!is_object($type)) {
            NodeType::add('file');
        }
        $type = NodeType::getByHandle('file_folder');
        if (!is_object($type)) {
            NodeType::add('file_folder');
        }
        $type = NodeType::getByHandle('search_preset');
        if (!is_object($type)) {
            NodeType::add('search_preset');
        }
        $type = TreeType::getByHandle('file_manager');
        if (!is_object($type)) {
            TreeType::add('file_manager');
        }

        $manager = FileManager::get();
        if (!is_object($manager)) {
            $manager = FileManager::add();
        }

        return $manager;
    }
public function create ( ) { $ type = NodeType :: getByHandle ( 'file' ) ; if ( ! is_object ( $ type ) ) { NodeType :: add ( 'file' ) ; } $ type = NodeType :: getByHandle ( 'file_folder' ) ; if ( ! is_object ( $ type ) ) { NodeType :: add ( 'file_folder' ) ; } $ type = NodeType :: getByHandle ( 'search_preset' ) ; if ( ! is_object ( $ type ) ) { NodeType :: add ( 'search_preset' ) ; } $ type = TreeType :: getByHandle ( 'file_manager' ) ; if ( ! is_object ( $ type ) ) { TreeType :: add ( 'file_manager' ) ; } $ manager = FileManager :: get ( ) ; if ( ! is_object ( $ manager ) ) { $ manager = FileManager :: add ( ) ; } return $ manager ; }
Creates everything necessary to store files in folders.

@return \Concrete\Core\Tree\Type\FileManager
Creates everything necessary to store files in folders .