Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8b8a6d8

Browse files
louisparispoyea
authored andcommitted
reduce indentation (TheAlgorithms#741)
1 parent d27968b commit 8b8a6d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎file_transfer_protocol/ftp_send_receive.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
File transfer protocol used to send and receive files using FTP server.
3-
Use credentials to provide access to the FTP client
2+
File transfer protocol used to send and receive files using FTP server.
3+
Use credentials to provide access to the FTP client
44
5-
Note: Do not use root username & password for security reasons
6-
Create a seperate user and provide access to a home directory of the user
7-
Use login id and password of the user created
8-
cwd here stands for current working directory
5+
Note: Do not use root username & password for security reasons
6+
Create a seperate user and provide access to a home directory of the user
7+
Use login id and password of the user created
8+
cwd here stands for current working directory
99
"""
1010

1111
from ftplib import FTP
@@ -14,8 +14,8 @@
1414
ftp.cwd('/Enter the directory here/')
1515

1616
"""
17-
The file which will be received via the FTP server
18-
Enter the location of the file where the file is received
17+
The file which will be received via the FTP server
18+
Enter the location of the file where the file is received
1919
"""
2020

2121
def ReceiveFile():
@@ -25,8 +25,8 @@ def ReceiveFile():
2525
ftp.quit()
2626

2727
"""
28-
The file which will be sent via the FTP server
29-
The file send will be send to the current working directory
28+
The file which will be sent via the FTP server
29+
The file send will be send to the current working directory
3030
"""
3131

3232
def SendFile():

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /