Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • none

Classes

  • Arrays
  • Callback
  • FileSystem
  • Finder
  • Html
  • Json
  • LimitedScope
  • MimeTypeDetector
  • Neon
  • NeonEntity
  • Paginator
  • Strings
  • Validators

Exceptions

  • AssertionException
  • JsonException
  • NeonException
  • RegexpException
  • TokenizerException
  • 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.1 API documentation generated by ApiGen 2.8.0