Changeset 9862 for trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
- Timestamp:
- 11/24/2008 08:24:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
r8880 r9862 162 162 } 163 163 fclose($stream); 164 $data = str_replace("__COMMAND_FINISHED__", "", $data);164 $data = trim(str_replace("__COMMAND_FINISHED__", "", $data)); 165 165 if (($returnbool) && ( (int) $data )) { 166 166 return true; … … 312 312 function exists($file) { 313 313 $this->debug("exists();"); 314 $list = $this->run_command($this->link, sprintf('ls -lad %s', $file)); 315 return (bool) $list; 314 return $this->run_command($this->link, sprintf('ls -lad %s', $file), true); 316 315 } 317 316
Note: See TracChangeset
for help on using the changeset viewer.