Skip to content

Commit

Permalink
bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ACTom committed Jun 16, 2017
1 parent 555379e commit 9e35b25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions make.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<?php

if (PHP_SAPI !== 'cli') {
error("Run for command line only.");
exit("Run for command line only.\n");
}

if (Phar::canWrite() === false) {
error("Phar can not write, Set \"phar.readonly = Off\" in php.ini.");
exit("Phar can not write, Set \"phar.readonly = Off\" in php.ini.\n");
}

$pharName = dirname(__DIR__) . '/coscmd.phar';
Expand All @@ -26,7 +26,7 @@
$source = __DIR__ . '/config.php';
$destnation = dirname(__DIR__) . '/config.php';
if (!file_exists($destnation)) {
copy(__DIR__ . '/config.php', dirname(__DIR__));
copy($source, $destnation);
}

chmod($pharName, 0755);
2 changes: 1 addition & 1 deletion src/Cos.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function listDirectory($directoryPath, $showAll = false, $bucket = null)
$listover = false;
$sourceList = [];
while (!$listover) {
$result = $this->api->listFolder($bucket, $directoryPath, 20, 'eListBoth', 0, $context);
$result = $this->api->listFolder($bucket, $directoryPath, 199, 'eListBoth', 0, $context);
if ($result['code'] !== 0) {
return $this->returnResult($result);
}
Expand Down

0 comments on commit 9e35b25

Please sign in to comment.