summaryrefslogtreecommitdiff
path: root/paramiko/sftp_attr.py
Commit message (Collapse)AuthorAgeFilesLines
* [DATALAD RUNCMD] Run codespell -wYaroslav Halchenko2023-01-241-1/+1
| | | | | | | | | | | | | | === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
* Break up a big int literalJeff Forcier2023-01-161-2/+2
| | | | | | We could do this on a LOT of hex and similar literals, but that's a lot of work for little gain, let's just do that organically over time instead.
* No more (object)ionsJeff Forcier2023-01-161-1/+1
|
* py3compat.strftime -> time.strftimeJeff Forcier2023-01-091-3/+2
|
* Remove or transmute all use of long()Jeff Forcier2023-01-091-3/+3
| | | | | | | - When wrapping literals: just go away - When wrapping variables whose values are already definitely integers (eg output of 'id()'): ditto - When wrapping variables of unknown provenance or which are definitely NOT integers: replaced with int()
* Remove py3compat.PY2, including related streamliningJeff Forcier2023-01-091-9/+3
|
* Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
| | | | They moved from Temple Place to Franklin Street in 2005.
* Blacken code for #992Jeff Forcier2021-11-281-4/+4
|
* Fix failure in listdir when server uses a localeMartin Packman2021-11-281-10/+13
| | | | | | | | | | | | | | | Fixes #985 SFTPAttributes uses the locale-aware %b directive for the abbreviated month name with time.strftime, but was not decoding the result on Python 2.7. Add a strftime alias in py3compat that will always return unicode, and resolve the mixing of bytes and text in SFTPAttributes methods. Add a test at the listdir level, and a more specific test for the SFTPAttributes asbytes method.
* Blacken under black 18.5b0Jeff Forcier2018-05-291-1/+6
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-29/+34
|
* String format modernization, part 11070-remove-python26-and-33Jeff Forcier2017-10-101-6/+10
| | | | | | | Choosing to skip it in some edge/corner cases where it's more harmful than helpful. Also choosing to replace many non-%s specifiers with regular old {} since I don't see why one would normally care. Again, eschewing that in spots where it seems like it might matter.
* Additional PEP8 fixes.Dorian Pula2017-05-311-7/+13
|
* Merge branch '1.14' into 1.15Jeff Forcier2015-11-021-1/+4
|\
| * Fixed str() of empty SFTPAttributes()Ulrich Petri2015-11-021-1/+4
| |
* | Converted all staticmethod/classmethod instances to decorators.Jacob Beck2014-10-141-4/+3
|/
* Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-5/+3
|
* Merge remote-tracking branch 'scottkmaxwell/py3-support-without-py25' into ↵Jeff Forcier2014-03-051-6/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python3 Conflicts: dev-requirements.txt paramiko/__init__.py paramiko/file.py paramiko/hostkeys.py paramiko/message.py paramiko/proxy.py paramiko/server.py paramiko/transport.py paramiko/util.py paramiko/win_pageant.py setup.py
| * Make sftp.open handle binary and text, more type conversionScott Maxwell2013-11-021-0/+2
| |
| * Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell2013-10-301-4/+4
| |
| * Fix dict iters, sorts, exceptions, bytes renames and tuple argsScott Maxwell2013-10-301-2/+2
| |
* | SFTP done, ughJeff Forcier2014-02-261-5/+2
| |
* | Wow there's a lot of SFTP crap.Jeff Forcier2014-02-211-9/+10
| |
* | Start in on the SFTP sectionJeff Forcier2014-02-211-2/+2
| |
* | Don't actually need :class: anywhere nowJeff Forcier2014-02-211-2/+2
| |
* | Mass SnR of class refs with dotted ones.Jeff Forcier2014-02-211-2/+2
| | | | | | | | | | | | | | | | Boo on Sphinx for not letting me just change this behavior by default. There are a handful of incorrect items here that will get tweaked later.
* | Epydoc -> Sphinx.Olle Lundberg2014-01-231-13/+13
|/
* Fixed a typo in the license header of most filesJeff Forcier2013-09-271-1/+1
| | | | | Conflicts: paramiko/proxy.py
* i lost who sent this to me (sorry). patches to fix AIX.Robey Pointer2010-04-251-5/+5
|
* fix my email address to be the current one.Robey Pointer2009-07-191-1/+1
|
* [project @ robey@lag.net-20070520225622-ozs9cguu8ipaxt85]Robey Pointer2007-05-201-1/+3
| | | | patch from wesley augur: expose the 'longname' field from listdir_attr().
* [project @ robey@lag.net-20070210235828-2a24iw2xqe4lnf42]Robey Pointer2007-02-101-2/+3
| | | | | patch from mpool to fix a python 2.5 warning: stat() returns floats for times and we want to encode them as ints.
* [project @ robey@lag.net-20060908023959-de70f0675f25fa64]Robey Pointer2006-09-071-5/+11
| | | | fixes from mike barber for chdir and sftp attr __str__
* [project @ robey@lag.net-20060710070003-b9c4a1a7f7ab0ae9]Robey Pointer2006-07-101-1/+1
| | | | apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value
* [project @ robey@lag.net-20060220005934-58d0df2920e799b5]Robey Pointer2006-02-191-1/+1
| | | | update copyright year
* [project @ robey@master-shake.local-20060119232616-edcb93583d3dc005]Robey Pointer2006-01-191-19/+23
| | | | john points out i could just use None for no-value and it would be a lot simpler... good point
* [project @ robey@master-shake.local-20060115063008-4f68552398868788]Robey Pointer2006-01-141-24/+26
| | | | fix a bunch of pychecker warnings, some of which were actual (but unlikely) bugs
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-75]Robey Pointer2005-10-311-9/+9
| | | | fix a few windows bugs (and broken str() on SFTPAttributes) reported by grzegorz makarewicz
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-65]Robey Pointer2005-10-131-5/+4
| | | | remove unnecessary shebangs, fix import lines to be explicit about imports from within paramiko, and a bit of whitespace cleanup
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-25]Robey Pointer2005-07-071-1/+0
| | | | cool optimization from john rochester: use cStringIO in Message (and also fix some unit test bugs revealed by the change)
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-159]Robey Pointer2005-04-101-2/+5
| | | | | clean up SFTPAttributes.__repr__ clean up SFTPAttributes repr() a bit.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-154]Robey Pointer2005-02-281-1/+1
| | | | | | | even better 1.2 lapras re-bump the version # to 1.2 (with a new date since i added more stuff). add 2005 to the copyright date in a bunch of files.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-144]Robey Pointer2005-02-061-1/+1
| | | | | | fix docs clean up some of the docs.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-140]Robey Pointer2005-01-171-0/+19
| | | | | | | | | | more flexible logging some tweaks to make channels etc follow the logger setting of their parent transport, so that setting the log channel for a paramiko transport will cause all sub-logging to branch out from that channel. also, close all open file handles when the sftp server ends.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-137]Robey Pointer2005-01-091-1/+3
| | | | | | | added listdir_attr() add SFTPClient.listdir_attr() to fetch a list of files & their attributes, instead of just their filenames. artur piwko would find this useful.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-108]Robey Pointer2004-11-071-1/+5
| | | | | add filename to SFTPAttributes add filename to the attributes stored in an SFTPAttributes object.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-85]Robey Pointer2004-09-111-0/+182
move SFTPFile and SFTPAttributes into their own files move SFTPFile and SFTPAttributes into their own files.