02c0e84406c417fb86a5346c08c9202605341c1a — Stefan Schwarzer 10 years ago 7889ace
Recommend using `FTPHost.path` instead of hardcoding path separators.
1 files changed, 11 insertions(+), 0 deletions(-)

M doc/ftputil.txt
M doc/ftputil.txt => doc/ftputil.txt +11 -0
@@ 351,6 351,17 @@ Attributes
  FTP server implementation, the Unix variants seem to work well in
  practice, even for non-Unix servers.

  Nevertheless, it's recommended that you don't hardcode these values
  for remote paths, but use `FTPHost.path`_ as you would use
  ``os.path`` to write platform-independent Python code for local
  filesystems. Keep in mind that most, *but not all*, arguments of
  ``FTPHost`` methods refer to remote directories or files. For
  example, in `FTPHost.upload`_, the first argument is a local
  path and the second a remote path. Both of these should use their
  respective path separators.

.. _`FTPHost.upload`: `Uploading and downloading files`_

Remote file system navigation