Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • ObjectHelpers
  • ObjectMixin
  • Paginator
  • Random
  • Reflection
  • SafeStream
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

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

Class FileSystem

File system tool.

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

Creates a directory.

Creates a directory.

Throws

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

Copies a file or directory.

Copies a file or directory.

Throws

Nette\IOException
Nette\IOException
public static
# delete( $path )

Deletes a file or directory.

Deletes a file or directory.

Throws

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

Renames a file or directory.

Renames a file or directory.

Throws

Nette\IOException
Nette\IOException
Nette\InvalidStateException
if the target file or directory already exist
public static string
# read( $file )

Reads file content.

Reads file content.

Returns

string
string

Throws

Nette\IOException
Nette\IOException
public static
# write( $file, $content, $mode = 0666 )

Writes a string to a file.

Writes a string to a file.

Throws

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

Is path absolute?

Is path absolute?

Returns

boolean
bool
Methods used from Nette\StaticClass
__callStatic(), __construct()
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0