This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Paul Dragoonis ([email protected]) | |
* @license http://opensource.org/licenses/mit-license.php MIT | |
* @package Core | |
* @link wwww.ppi.io | |
*/ | |
namespace PPI\Exception; | |
class Handler implements ExceptionInterface { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var response = '', // FTP LIST response as a string | |
lines = response.trim().split("\r\n"), | |
parsed = [], | |
regexp = new RegExp( | |
'^([\\-dbclps])' + // Directory flag [1] | |
'([\\-rwxs]{9})\\s+' + // Permissions [2] | |
'(\\d+)\\s+' + // Number of items [3] | |
'(\\w+)\\s+' + // File owner [4] | |
'(\\w+)\\s+' + // File group [5] | |
'(\\d+)\\s+' + // File size in bytes [6] |