Lines Matching defs:a

12  * Here's a short example of how to use this library:
57 * Reads data from a local file.
63 * Reads data from a string.
83 * Append a local file to an already existing remote file
122 * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support
133 * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support
251 * Rather than always having to open a directory and close it immediately there after to see if a file is a directory
353 * $host can either be a string, representing the host, or a stream resource.
431 // the order, in this case, matters quite a lot - see \phpseclib3\Net\SFTP::_parseAttributes() to understand why
449 // 0x80000000 will yield a floating point on 32-bit systems and converting floating points to integers
452 // that's not a problem, however, and 'anded' and a 32-bit number, as all the leading 1 bits are ignored.
470 // when SSH_FXF_ACCESS_DISPOSITION is a 3 bit field that controls how the file is opened
525 * Check a few things before SFTP functions are called
573 // we don't do $this->exec($command, false) because exec() operates on a different channel and plus the SSH_MSG_CHANNEL_OPEN that exec() does
642 server MAY send a status response describing the failure, but MUST then close the channel without
645 So what do you do if you have a client whose initial SSH_FXP_INIT packet says it implements v3 and
646 a server whose initial SSH_FXP_VERSION reply says it implements v4 and only v4? If it only implements
649 channel and reopen it with a new and updated SSH_FXP_INIT packet.
684 SFTPv4+ defines a 'newline' extension. SFTPv3 seems to have unofficial support for it via 'newline@vandyke.com',
687 one another due to the fact that 'newline' comes with a SSH_FXF_TEXT bitmask whereas it seems unlikely that
820 * SFTP doesn't provide a mechanism by which the current working directory can be changed, so we'll emulate it. Returns
927 // suffix a slash if needed
934 // confirm that $dir is, in fact, a valid directory
940 // we could do a stat on the alleged $dir to see if it's a directory but that doesn't tell us
947 // see \phpseclib3\Net\SFTP::nlist() for a more thorough explanation of the following
972 * Returns a list of files in the given directory
996 // We do not have a file list, so return false.
1024 * Returns a detailed list of files in the given directory
1035 // We do not have a file list, so return false.
1074 * Reads a list, be it detailed or not, of files in the given directory
1118 // why multiple SSH_FXP_READDIR packets would be sent when the response to a single one can span arbitrarily many
1185 * @param array $a
1189 private function comparator(array $a, array $b)
1192 case $a['filename'] === '.' || $b['filename'] === '.':
1193 if ($a['filename'] === $b['filename']) {
1196 return $a['filename'] === '.' ? -1 : 1;
1197 case $a['filename'] === '..' || $b['filename'] === '..':
1198 if ($a['filename'] === $b['filename']) {
1201 return $a['filename'] === '..' ? -1 : 1;
1202 case isset($a['type']) && $a['type'] === NET_SFTP_TYPE_DIRECTORY:
1206 if ($b['type'] !== $a['type']) {
1214 if (!isset($a[$sort]) || !isset($b[$sort])) {
1215 if (isset($a[$sort])) {
1225 $result = strcasecmp($a['filename'], $b['filename']);
1231 $a[$sort] &= 07777;
1235 if ($a[$sort] === $b[$sort]) {
1238 return $order === SORT_ASC ? $a[$sort] - $b[$sort] : $b[$sort] - $a[$sort];
1249 * Any parameter returned by stat is a valid sort parameter for this function.
1297 // 1. a file was deleted and changed to a directory behind phpseclib's back
1298 // 2. it's a symlink. when lstat is done it's unclear what it's a symlink to
1374 * Returns general information about a file.
1430 * Returns general information about a file or symbolic link.
1494 * Returns general information about a file or symbolic link
1524 * Truncates a file to a given length
1596 * $uid should be an int for SFTPv3 and a string for SFTPv4+. Ideally the string
1613 "To avoid a representation that is tied to a particular underlying
1616 This will allow for a client and server that do not use the same
1617 local representation the ability to translate to a common syntax that
1634 // during a modification operation"
1643 * $gid should be an int for SFTPv3 and a string for SFTPv4+. Ideally the string
1665 * Set permissions on a file.
1714 * Sets information about a file
1744 pack('a*Ca*', substr($attr, 0, 4), NET_SFTP_TYPE_UNKNOWN, substr($attr, 4)) :
1749 "Because some systems must use separate system calls to set various attributes, it is possible that a failure
1846 * Return the target of a symbolic link
1875 // the file isn't a symlink
1886 * Create a symlink
1888 * symlink() creates a symbolic link to the existing target with the specified name link.
1952 * Creates a directory.
2016 * Removes a directory.
2049 // the following will do a soft delete, which would be useful if you deleted a file
2050 // and then tried to do a stat on the deleted file. the above, in contrast, does
2051 // a hard delete
2058 * Uploads a file to the SFTP server.
2061 * So, for example, if you set $data to 'filename.ext' and then do \phpseclib3\Net\SFTP::get(), you will get a file, twelve bytes
2069 * of bytes to return, and returns a string if there is some data or null if there is no more data
2071 * If $data is a resource then it'll be used as a resource instead.
2077 * $mode. So if you want to resume upload of a 300mb file on the local file system you'd set $mode to the following:
2081 * If you wanted to simply append the full contents of a local file to the full contents of a remote file you'd replace
2087 * when they're non-negative. ie. $start could let you write at the end of a file (like self::RESUME) or in the middle
2088 * of one. $local_start could let you start your reading from the end of a file (like self::RESUME_START) or in the
2093 * {@internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - \phpseclib3\Net\SFTP::setMode().}
2102 * @throws \BadFunctionCallException if you're uploading via a callback and the callback function is invalid
2103 * @throws \phpseclib3\Exception\FileNotFoundException if you're uploading via a file and the file doesn't exist
2187 throw new FileNotFoundException("$data is not a valid file");
2345 * Downloads a file from the SFTP server.
2347 * Returns a string containing the contents of $remote_file if $local_file is left undefined or a boolean false if
2505 // if $content isn't set that means a file was written to
2510 * Deletes a file on the SFTP server.
2635 * Checks whether a file or directory exists
2661 * Tells whether the filename is a directory
2676 * Tells whether the filename is a regular file
2691 * Tells whether the filename is a symbolic link
2706 * Tells whether a file exists and is readable
2892 * Return a stat properity
2920 * Return a stat or lstat properity
2955 * Renames a file or a directory on the SFTP server.
2981 'flags' is 0 or a combination of:
3213 // a known type which cannot be expressed in the protocol"
3223 * SFTPv3 doesn't provide any easy way of identifying a file type. You could try to open
3224 * a file as a directory and see if an error is returned or you could try to parse the
3288 * Resets a connection for re-use
3426 * Returns a log of the packets that have been sent and received.
3428 * Returns a string if NET_SFTP_LOGGING == self::LOG_COMPLEX, an array if NET_SFTP_LOGGING == self::LOG_SIMPLE and false if !defined('NET_SFTP_LOGGING')