Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !680

Allow sorting files in FTPConnector

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge jerome/erp5:feat/sftp_list_dir_sorted_test into master May 22, 2018
  • Overview 3
  • Commits 2
  • Pipelines 0
  • Changes 5

ExtendFTPConnector.listFiles to sort files based on some server-side computed attributes of files.

This uses listdir_attr method of paramiko. sort_on parameter is directly attributes of paramiko.sftp_attr.SFTPAttributes.

At the same time, adds a minimal tests, that will only run if testSFTPConnection_SFTP_URL environment variable is set to an URI of a running sftp server supporting password authentication - which means that in our current tests infrastructure it will not run.

/cc @vpelletier @aurel @rafael

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/sftp_list_dir_sorted_test
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7