$path = pwd
$path = $path.Path
Function CreateXmlWriter($path) {
# get an XMLTextWriter to create the XML
$XmlWriter = New-Object System.XMl.XmlTextWriter($path,$Null)
$changlog = Get-Content "$path\Raptorious.SharpMT940Lib\CHANGELOG.md"
$output = $path + "\.artifacts\$platform\Raptorious.SharpMt940LibSwift"
$nuget_exec = $path + "\.nuget\nuget.exe"
cd $path
sub cmd_clone {
my ($url, $path) = @_;
if (!defined $path &&
(defined $_trunk || @_branches || @_tags ||
$url !~ m#^[a-z\+]+://#) {
$path = $url;
}
$path = basename($url) if !defined $path || !length $path;
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
cmd_init($url, $path);
$gs->prop_walk($gs->{path}, $r, sub {
my ($gs, $path, $props) = @_;
print STDOUT "\n# $path\n";
my $s = $props->{'svn:ignore'} or return;
chomp $s;
$s =~ s#^#$path#gm;
$this->tmbPath = $path;
$this->tmbPathWritable = is_writable($path);
}
public function realpath($hash) {
$path = $this->decode($hash);
return $this->stat($path) ? $path : false;
}
public function closest($hash, $attr, $val) {
return ($path = $this->closestByAttr($this->decode($hash), $attr, $val)) ? $this->encode($path) : false;
public function file($hash) {
$path = $this->decode($hash);
return ($file = $this->stat($path)) ? $file : $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
if (($file = $this->stat($path)) != false) {
*
* @param string $path file path
**/
protected function _basename($path) {
return basename($path);
}
*
* @param string $path path
**/
protected function _normpath($path) {
if (empty($path)) {
return '.';
if (strpos($path, '/') === 0) {
if (($initial_slashes)
&& (strpos($path, '//') === 0)
&& (strpos($path, '///') === false)) {
*
* @param string $path dir path
**/
protected function cacheDir($path) {
$this->dirsCache[$path] = array();
if (preg_match('/\'|\"/', $path)) {
foreach (ftp_nlist($this->connect, $path) as $p) {
if (($stat = $this->_stat($p)) &&empty($stat['hidden'])) {
// $files[] = $stat;
$this->dirsCache[$path][] = $p;
}
foreach (ftp_rawlist($this->connect, $path) as $raw) {
if (($stat = $this->parseRaw($raw))) {
$p = $path.'/'.$stat['name'];
$this->tmbPath = $path;
$this->tmbPathWritable = is_writable($path);
}
public function realpath($hash) {
$path = $this->decode($hash);
return $this->stat($path) ? $path : false;
}
public function closest($hash, $attr, $val) {
return ($path = $this->closestByAttr($this->decode($hash), $attr, $val)) ? $this->encode($path) : false;
public function file($hash) {
$path = $this->decode($hash);
return ($file = $this->stat($path)) ? $file : $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
if (($file = $this->stat($path)) != false) {
*/
static public function getMountPoint($path) {
OC_Hook::emit(self::CLASSNAME, 'get_mountpoint', array('path'=>$path));
if(!$path) {
$path='/';
}
if($path[0]!=='/') {
$path='/'.$path;
}
$path=str_replace('//', '/', $path);
foreach($mountPoints as $mountpoint) {
if($mountpoint==$path) {
}
if(strpos($path, $mountpoint)===0 and strlen($mountpoint)>strlen($foundMountPoint)) {
*/
static public function getInternalPath($path) {
$mountPoint=self::getMountPoint($path);
public function getAbsolutePath($path = '/') {
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}
return $this->fakeRoot.$path;
*/
public function getInternalPath($path) {
if (!isset($this->internal_path_cache[$path])) {
$this->internal_path_cache[$path] = OC_Filesystem::getInternalPath($this->getAbsolutePath($path));
}
return $this->internal_path_cache[$path];
*/
public function getRelativePath($path) {
if($this->fakeRoot=='') {
$class = $bean['class'];
$path = $bean['path'];
$str .= "\$beanList['$module'] = '$class';\n";
$str .= "\$beanFiles['$class'] = '$path';\n";
$GLOBALS['log']->debug('Unlink ' .$path);
if (file_exists($path))
rmdir_recursive($path);
}
$GLOBALS['log']->debug("Installing Menu ..." . $menu['from']. " for " .$menu['to_module'] );
$path = 'custom/Extension/modules/' . $menu['to_module']. '/Ext/Menus';
if($menu['to_module'] == 'application'){
$path ='custom/Extension/' . $menu['to_module']. '/Ext/Menus';
}
if(!file_exists($path)){
mkdir_recursive($path, true);
if(!empty($from)) {
copy_recursive($from , "$path/$target.php");
if($item['to_module'] == 'application') {
$path = "custom/Extension/application/Ext/$extname";
} else {
$path = "custom/Extension/modules/{$item['to_module']}/Ext/$extname";
}
$disabled_path = $path.'/'.DISABLED_PATH;
if (file_exists("$path/$target.php")) {
rmdir_recursive("$path/$target.php");
} else if (file_exists("$disabled_path/$target.php")) {
rmdir_recursive("$disabled_path/$target.php");
} else if (!empty($from) && file_exists($path . '/'. basename($from))) {
rmdir_recursive( $path . '/'. basename($from));
} else if (!empty($from) && file_exists($disabled_path . '/'. basename($from))) {
$path = $this->object->fetchUrl('/lists/list.json', $data);
->method('get')
->with($path)
$path = $this->object->fetchUrl('/application/rate_limit_status.json', array("resources" => "lists"));
->method('get')
->with($path)
$path = $this->object->fetchUrl('/lists/list.json', $data);
$path = $this->object->fetchUrl('/lists/statuses.json', $data);
->method('get')
->with($path)
$path = $this->object->fetchUrl('/application/rate_limit_status.json', array("resources" => "lists"));
*
* @param string $path path
**/
protected function _normpath($path) {
if (empty($path)) {
return '.';
if (strpos($path, '/') === 0) {
if (($initial_slashes)
&& (strpos($path, '//') === 0)
&& (strpos($path, '///') === false)) {
$initial_slashes = 2;
$comps = explode('/', $path);
$comps = $new_comps;
$path = implode('/', $comps);
if ($initial_slashes) {
// set thumbnails path
$path = $this->options['tmbPath'];
if ($path) {
public function realpath($hash) {
$path = $this->decode($hash);
return $this->stat($path) ? $path : false;
}
public function closest($hash, $attr, $val) {
return ($path = $this->closestByAttr($this->decode($hash), $attr, $val)) ? $this->encode($path) : false;
public function file($hash) {
$path = $this->decode($hash);
return ($file = $this->stat($path)) ? $file : $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
if (($file = $this->stat($path)) != false) {
* @access public
* @param string $path Path to resolve.
*/
public function resolve ( $path, $exists = true, $unfold = false ) {
if(substr($path, 0, 6) !== 'hoa://')
return $path;
if(isset(self::$_cache[$path]))
$handle = self::$_cache[$path];
else {
$accumulator = array();
$posId = strpos($path, '#');
$id = substr($path, $posId + 1);