Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • LimitedScope
  • MimeTypeDetector
  • ObjectMixin
  • Paginator
  • Random
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

  • AssertionException
  • JsonException
  • RegexpException
  • TokenizerException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class FileSystem

File system tool.

Namespace: Nette\Utils
Author: David Grudl
Located at Utils/FileSystem.php
Methods summary
public static
# createDir( $dir, $mode = 0777 )

Creates a directory.

Creates a directory.

Throws

Nette\IOException
public static
# copy( $source, $dest, $overwrite = TRUE )

Copies a file or directory.

Copies a file or directory.

Throws

Nette\IOException
public static
# delete( $path )

Deletes a file or directory.

Deletes a file or directory.

Throws

Nette\IOException
public static
# rename( $name, $newName, $overwrite = TRUE )

Renames a file or directory.

Renames a file or directory.

Throws

Nette\IOException
Nette\InvalidStateException
if the target file or directory already exist
public static
# write( $file, $content, $mode = 0666 )

Writes a string to a file.

Writes a string to a file.

Throws

Nette\IOException
public static boolean
# isAbsolute( $path )

Is path absolute?

Is path absolute?

Returns

boolean
Nette 2.2 API documentation generated by ApiGen 2.8.0