Folder

Type
Class
Namespace
Craft
Inherits
Craft\Folder » Craft\BaseIO
Since
1.0

Class Folder

See also http://craftcms.com

View source (opens new window)

# Protected Properties

Property Description
$path string (opens new window)

# Public Methods

# __construct()

Signature

public Craft\Folder __construct ( $path )

# clear()

Signature

public boolean clear ( $suppressErrors = false )

# copy()

Signature

public boolean copy ( $destination )

# delete()

Signature

public boolean delete ( )

# getContents()

View source (opens new window)

Arguments

  • $recursive
  • $filter

Returns

mixed

Signature

public mixed getContents ( $recursive, $filter )

# getSize()

Signature

public mixed getSize ( )

# isEmpty()

Signature

public boolean isEmpty ( )