[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/fs/src/ -> lmbFs.class.php (summary)

(no description)

File Size: 590 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lmbFs:: (30 methods):
  safeWrite()
  getTmpDir()
  generateTmpFile()
  generateTempFile()
  dirpath()
  mkdir()
  _getFirstExistingPathIndex()
  _doMkdir()
  explodePath()
  joinPath()
  chop()
  rm()
  _doRm()
  mv()
  cp()
  ls()
  separator()
  _concreteSeparatorType()
  convertSeparators()
  normalizePath()
  isPathRelative()
  isPathAbsolute()
  _normalizeSeparators()
  _hasWin32NetPrefix()
  path()
  find()
  findRecursive()
  _doFindRecursive()
  walkDir()
  _doWalkDir()


Class: lmbFs  - X-Ref

class lmbFs.

safeWrite($file, $content, $perm=0664)   X-Ref
No description

getTmpDir()   X-Ref
No description

generateTmpFile($prefix = 'p')   X-Ref
No description

generateTempFile($prefix = 'p')   X-Ref


dirpath($path)   X-Ref
No description

mkdir($dir, $perm=0777, $parents=true)   X-Ref
Creates the directory $dir with permissions $perm.
If $parents is true it will create any missing parent directories,
just like 'mkdir -p'.


_getFirstExistingPathIndex($path_elements, $separator)   X-Ref
No description

_doMkdir($dir, $perm)   X-Ref
Creates the directory $dir with permission $perm.


explodePath($path, $fs_type = self :: UNIX)   X-Ref
No description

joinPath($arr, $fs_type = self :: UNIX)   X-Ref
No description

chop($path)   X-Ref
No description

rm($file)   X-Ref
No description

_doRm($item, $separator)   X-Ref
No description

mv($src, $dest)   X-Ref
No description

cp($src, $dest, $exclude_regex = '', $include_regex = '', $as_child = false, $include_hidden = true)   X-Ref
No description

ls($path)   X-Ref
No description

separator($type = lmbFs :: UNIX)   X-Ref
Return the separator used between directories and files according to $type.


_concreteSeparatorType($type)   X-Ref
No description

convertSeparators($path, $to_type = self :: UNIX)   X-Ref
Converts any directory separators found in $path, in both unix and dos style, into
the separator type specified by $to_type and returns it.


normalizePath($path, $to_type = self :: UNIX)   X-Ref
Removes all unneeded directory separators and resolves any "."s and ".."s found in $path.

For instance: "var/../lib/db" becomes "lib/db", while "../site/var" will not be changed.
Will also convert separators

isPathRelative($path, $fs_type = self :: LOCAL)   X-Ref
No description

isPathAbsolute($path, $fs_type = self :: LOCAL)   X-Ref
No description

_normalizeSeparators($path, $separator)   X-Ref
No description

_hasWin32NetPrefix($path)   X-Ref
No description

path($names, $include_end_separator=false, $type = self :: UNIX)   X-Ref
No description

find($dir, $types = 'dfl', $include_regex = '', $exclude_regex = '', $add_path = true, $include_hidden = false)   X-Ref
No description

findRecursive($path, $types = 'dfl', $include_regex = '', $exclude_regex = '', $add_path = true, $include_hidden = false)   X-Ref
No description

_doFindRecursive($dir, $file, $path, $params, &$return_params)   X-Ref
No description

walkDir($dir, $function_def, $params=array()   X-Ref
No description

_doWalkDir($item, $separator, $function_def, &$return_params, $params, $include_first, $level=0)   X-Ref
No description



Generated: Fri Aug 29 04:49:26 2008 Cross-referenced by PHPXref 0.7