GithubHelp home page GithubHelp logo

ftp's Introduction

About

whipFTP is a FTP/SFTP client written in python using the tkinter GUI toolkit. Can upload, download, create, rename, copy, move and search files/folders.

Currently supported platforms:

  • Linux
  • Windows XP/7/10
  • MacOS

#Errors fund home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:24: SyntaxWarning: "is" with a literal. Did you mean "=="? if(platform.system() is 'Windows'): /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:441: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.file_list) is 0: /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:677: SyntaxWarning: "is not" with a literal. Did you mean "!="? if(len(self.selected_file_indices) is not 1): return /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1095: SyntaxWarning: "is" with a literal. Did you mean "=="? while self.replace_window.command is '': /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1095: SyntaxWarning: "is" with a literal. Did you mean "=="? while self.replace_window.command is '': /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1097: SyntaxWarning: "is" with a literal. Did you mean "=="? if (self.replace_window.command is 'skip'): return False /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1098: SyntaxWarning: "is" with a literal. Did you mean "=="? elif (self.replace_window.command is 'replace'): return True /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1099: SyntaxWarning: "is" with a literal. Did you mean "=="? elif (self.replace_window.command is 'skip_all'): /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1102: SyntaxWarning: "is" with a literal. Did you mean "=="? elif (self.replace_window.command is 'replace_all'): /home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py:1205: SyntaxWarning: "is" with a literal. Did you mean "=="? if(platform.system() is 'Windows' and platform.release() != '7'): Traceback (most recent call last): File "/home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py", line 14, in

#Upload syntaxes depreciate before to Run #2k23

Ces erreurs de syntaxe sont toutes liées à l'utilisation de l'opérateur is avec des littéraux (comme des chaînes de caractères), ce qui est généralement une mauvaise pratique en Python. L'opérateur is vérifie si deux objets sont identiques en termes de référence mémoire, tandis que l'opérateur == vérifie si deux objets sont égaux en termes de valeur.

Pour corriger ces erreurs, remplacez chaque instance de l'opérateur is avec == lorsque vous comparez des littéraux.

Par exemple, la ligne:

if(platform.system() is 'Windows'):

devrait être corrigée en:

if platform.system() == 'Windows':

et ainsi de suite pour toutes les autres occurrences de l'opérateur is avec des littéraux.

==============================================================================================

File "/home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py", line 677 if(len(self.selected_file_indices) == not 1): return ^^^ SyntaxError: invalid syntax`

L'erreur de syntaxe indiquée dans votre message d'erreur est causée par une utilisation incorrecte de l'opérateur not. Dans la ligne 677 de votre fichier whipFTP.py, vous avez utilisé l'opérateur not de manière incorrecte.

La ligne en question est:

if(len(self.selected_file_indices) == not 1): return

Il semble que vous essayiez de vérifier si la longueur de la liste self.selected_file_indices n'est pas égale à 1. Cependant, la syntaxe == not est incorrecte en Python.

Pour corriger cette erreur, vous pouvez remplacer == not par !=, qui est l'opérateur correct pour vérifier si deux valeurs ne sont pas égales. La ligne corrigée serait:

if len(self.selected_file_indices) != 1: return

Cela devrait résoudre l'erreur de syntaxe.

============================================================================================== Traceback (most recent call last): File "/home/eureka/Documents/master/network_proto/project/FTP/whipFTP.py", line 14, in <module> from tkinter import * ModuleNotFoundError: No module named 'tkinter'

L'erreur que vous rencontrez indique que le module tkinter n'est pas installé ou n'est pas accessible pour votre programme. tkinter est un module standard de Python qui fournit une interface graphique utilisateur (GUI).

Pour résoudre cette erreur, vous pouvez installer le module tkinter en utilisant la commande d'installation de packages pip:

pip install tk Si vous utilisez Debian ou Ubuntu, vous pouvez installer le paquet en exécutant la commande suivante dans un terminal : sudo apt-get install python3-tk

Getting whipFTP

Ubuntu/Debian:

  • Download the .deb file and install it.

Windows:

  • Install Python (minimum required version: python3.6.3 for 10/7 and python3.4.0 for XP), download the .zip file and extract it. Run install_dependencies.py script to install dependencies. Now you can run whipFTP.pyw to launch the application.

MacOS:

  • Not released yet. Use git clone or 'download zip', Install Python (minimum required version: python3.6.3). Run install_dependencies.py script to install dependencies. Now you can run whipFTP.py to launch the application.

Other Linux distributions:

  • Install Python (minimum required version: python3.6.3), download the .zip file and extract it. Run install_dependencies.py script to install dependencies. Now you can run whipFTP.py to launch the application.

Controls

  • Start connection
  • Upload files or folders
  • Save/Download files or folders
  • Create a new directory
  • Delete files or folders
  • Edit/View properties
  • Cut
  • Copy
  • Paste
  • About/Help
  • Goto a path
  • Search/Find files or folders
  • Goto parent directory

License

Bugs

  • Application looks blurry when DPI scaling is enabled.
  • Search on the root directory does not work.

Note

This project is currently being rewritten in wxpython.

ftp's People

Contributors

rainingcomputers avatar tcotidiane33 avatar

Stargazers

 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.