diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/libraries/Ftp.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/libraries/Ftp.php')
-rw-r--r-- | system/libraries/Ftp.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php index ed934b548..1b5ec2fd2 100644 --- a/system/libraries/Ftp.php +++ b/system/libraries/Ftp.php @@ -98,7 +98,7 @@ class CI_FTP { return FALSE;
}
- if ( ! $this->_login())
+ if (! $this->_login())
{
if ($this->debug == TRUE)
{
@@ -139,7 +139,7 @@ class CI_FTP { */
function _is_conn()
{
- if ( ! is_resource($this->conn_id))
+ if (! is_resource($this->conn_id))
{
if ($this->debug == TRUE)
{
@@ -216,7 +216,7 @@ class CI_FTP { }
// Set file permissions if needed
- if ( ! is_null($permissions))
+ if (! is_null($permissions))
{
$this->chmod($path, (int)$permissions);
}
@@ -237,12 +237,12 @@ class CI_FTP { */
function upload($locpath, $rempath, $mode = 'auto', $permissions = NULL)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
- if ( ! file_exists($locpath))
+ if (! file_exists($locpath))
{
$this->_error('ftp_no_source_file');
return FALSE;
@@ -270,7 +270,7 @@ class CI_FTP { }
// Set file permissions if needed
- if ( ! is_null($permissions))
+ if (! is_null($permissions))
{
$this->chmod($rempath, (int)$permissions);
}
@@ -291,7 +291,7 @@ class CI_FTP { */
function rename($old_file, $new_file, $move = FALSE)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
@@ -338,7 +338,7 @@ class CI_FTP { */
function delete_file($filepath)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
@@ -369,7 +369,7 @@ class CI_FTP { */
function delete_dir($filepath)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
@@ -385,7 +385,7 @@ class CI_FTP { {
// If we can't delete the item it's probaly a folder so
// we'll recursively call delete_dir()
- if ( ! @ftp_delete($this->conn_id, $filepath.$item))
+ if (! @ftp_delete($this->conn_id, $filepath.$item))
{
$this->delete_dir($filepath.$item);
}
@@ -418,13 +418,13 @@ class CI_FTP { */
function chmod($path, $perm)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
// Permissions can only be set when running PHP 5
- if ( ! function_exists('ftp_chmod'))
+ if (! function_exists('ftp_chmod'))
{
if ($this->debug == TRUE)
{
@@ -457,7 +457,7 @@ class CI_FTP { */
function list_files($path = '.')
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
@@ -481,7 +481,7 @@ class CI_FTP { */
function mirror($locpath, $rempath)
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
@@ -490,10 +490,10 @@ class CI_FTP { if ($fp = @opendir($locpath))
{
// Attempt to open the remote file path.
- if ( ! $this->changedir($rempath, TRUE))
+ if (! $this->changedir($rempath, TRUE))
{
// If it doesn't exist we'll attempt to create the direcotory
- if ( ! $this->mkdir($rempath) OR ! $this->changedir($rempath))
+ if (! $this->mkdir($rempath) OR ! $this->changedir($rempath))
{
return FALSE;
}
@@ -586,7 +586,7 @@ class CI_FTP { */
function close()
{
- if ( ! $this->_is_conn())
+ if (! $this->_is_conn())
{
return FALSE;
}
|