mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
Changing to code-block
This commit is contained in:
@@ -47,8 +47,10 @@ OC_Filesystem must be initiated before it can be used using the OC_Filesystem::i
|
||||
|
||||
Example:
|
||||
|
||||
``OC_Filesystem::init( '/' . $user . '/' . $root );
|
||||
OC_Filesystem::mkdir( 'test' );
|
||||
if ( OC_Filesystem::is_dir('test') ) { echo 'OC_Filesystem is being used correctly'; }``
|
||||
.. code-block:: php
|
||||
|
||||
OC_Filesystem::init( '/' . $user . '/' . $root );
|
||||
OC_Filesystem::mkdir( 'test' );
|
||||
if ( OC_Filesystem::is_dir('test') ) { echo 'OC_Filesystem is being used correctly'; }``
|
||||
|
||||
.. _singleton pattern: https://en.wikipedia.org/wiki/Singleton_pattern
|
||||
.. _singleton pattern: https://en.wikipedia.org/wiki/Singleton_pattern
|
||||
|
||||
Reference in New Issue
Block a user