- add support for the sticky bit

git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@170 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
Jim Wigginton 2011-07-06 05:43:48 +00:00
parent bc5e07cd69
commit d86bf78506

View File

@ -1480,7 +1480,8 @@ class Net_SFTP extends Net_SSH2 {
function _parseLongname($longname)
{
// http://en.wikipedia.org/wiki/Unix_file_types
if (preg_match('#^[^/]([r-][w-][x-]){3}#', $longname)) {
// http://en.wikipedia.org/wiki/Filesystem_permissions#Notation_of_traditional_Unix_permissions
if (preg_match('#^[^/]([r-][w-][xstST-]){3}#', $longname)) {
switch ($longname[0]) {
case '-':
return NET_SFTP_TYPE_REGULAR;