Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
/ FTPWorker Public archive

Модуль FTPWorker сделан для упрощения работы с ftplib.

Notifications You must be signed in to change notification settings

romanin-rf/FTPWorker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

FTPWorker

Описание

Модуль FTPWorker сделан для упрощения работы с ftplib.

Пример

  • main.py
import ftpworker

ftpw = ftpworker.FTPWorker("ftp.example.com", 21, "user", "password")
ftpw.connect()

print(ftpw.dir())

print(ftpw.dir(full_info=False))

ftpw.disconnect()
  • Вывод
[
    {
        "name": ".",
        "type": "directory",
        "size": 1024,
        "user": "user",
        "permissions": (7, 7, 7),
        "change_time": datetime(2022, 3, 19, 0, 0, 0)
    },
    {
        "name": "..",
        "type": "directory",
        "size": 1024,
        "user": "user",
        "permissions": (7, 7, 7),
        "change_time": datetime(2022, 3, 19, 0, 0, 0)
    },
    {
        "name": "example.txt",
        "type": "file",
        "size": 1024,
        "user": "user",
        "permissions": (7, 7, 7),
        "change_time": datetime(2022, 3, 19, 0, 0, 0)
    },
]
[".", "..", "example.txt"]

Авторы

  • Роман Слабицкий

About

Модуль FTPWorker сделан для упрощения работы с ftplib.

Topics

Resources

Stars

Watchers

Forks

Languages