/**
  *  This function returns true if a given path is a writeable.
  *
  *  @param  $path  The path.
  *
  *  @returns     True if it's writeable, false otherwise.
  */
 function isWriteable($path)
 {
     $dir = new YDFSDirectory($path);
     return $dir->isWriteable();
 }