Giter Site home page Giter Site logo

gupingan / ftp-tool Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

基于TCP协议使用Python开发的FTP小工具,比较简陋,可以拓展命令功能,与前一个FTP管理工具设计不太相同,命令设计是自己搞的,设计了请求和响应的通信协议,只能访问固定的文件库及其该文件库下的文件夹以及子文件

Python 100.00%

ftp-tool's Introduction

FTP工具-固定文件库版

基于TCP协议使用Python开发的FTP上传下载工具,比较简陋

其中服务端与客户端之间各设计得有 操作请求和完成响应的通信协议,如"LIST" "GET [filename]"等等

请使用相对路径,测试平台为Linux Mint

注意文件系统权限问题

菜单命令

  • 1 当前路径下的所有文件以及文件夹
  • 2 将所在路径下的服务器文件下载到本地文件,同名文件可被创建
  • 3 将本地文件上传到所在服务器的路径下,同名服务器文件可被创建
  • quit 退出客户端
  • exit 同上
  • 0 同上

使用方法

  1. 将ftp_server_new挂在服务端,在该python文件中,找到FTPServer类,修改run方法中的run_handle的路径(绝对路径),也就是文件库所在
  2. 在服务端终端运行 python3 ftp_server_new.py
  3. 将ftp_clien_newt中FTPView类中的实例化Handle对象的ip地址更换成服务端的ip地址
  4. 在pycharm或者客户端终端运行 python3 ftp_clien_newt.py

如若出现端口被占用,更换端口即可

ftp-tool's People

Contributors

gupingan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.