Skip to content

Commit ecf849b

Browse files
committed
# _PyFiTransfer_
> _**v0.3.0** Update Notes..._ --- ## Source Code - Added virtual environment to local structure. - Added `__init__.py` - Increased loading time during transfer process. - Minor additons to text prompts throughout process. --- Signed-off-by: schlopp96 <[email protected]>
1 parent e18c1d2 commit ecf849b

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PyFiTransfer
22

3-
> **_Python File Transfer v0.2.0_**
3+
> **_Python File Transfer v0.3.0_**
44
55
## About
66

src/__init__.py

Whitespace-only changes.

src/main.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414

1515
def main() -> NoReturn | None:
16-
"""Program method wrapper/entry point.
16+
"""Program entry point.
1717
18-
:return: [description]
19-
:rtype: [type]
18+
:return: Program starting method.
19+
:rtype: NoReturn | None
2020
"""
2121
origin: str | PathLike = getOrigin()
2222
destination: str | PathLike = getDestination()
@@ -68,7 +68,7 @@ def verify(directory: PathLike | str) -> bool:
6868
if isDir(directory):
6969
load(
7070
f'\nVerifying destination for file location:\n> "{directory}"',
71-
'Directory verified successfully!', False)
71+
'\nDirectory verified successfully!', False)
7272
return True
7373
else:
7474
load(
@@ -83,17 +83,17 @@ def verify(directory: PathLike | str) -> bool:
8383

8484
def transfer(origin, destination, fileType) -> Any:
8585
files: list = []
86-
print('\n> Transferring files now...')
86+
print('\n> Transferring files now...\n')
8787
with lsContents(origin) as dirFiles:
8888
for file in dirFiles:
8989
if not file.name.startswith('.') and file.name.endswith(
9090
f'.{fileType}') == True and file.is_file():
9191
files.append(file.name)
9292
copyfile(file, (destination + "\\" + base(file)))
9393
load(
94-
'> Copying correct files',
95-
f'> {len(files)} files successfully copied to new location:\n{files}'
96-
)
94+
f'> Transferring all ".{fileType}" type files to {destination}',
95+
f'> {len(files)} files successfully copied to new location:\n{files}',
96+
time=30)
9797

9898

9999
def Ex_0() -> NoReturn | None:
@@ -102,7 +102,7 @@ def Ex_0() -> NoReturn | None:
102102
:return: Exits program.
103103
:rtype: NoReturn
104104
"""
105-
print('\n\nOperation Successfull!')
105+
input('\n\nOperation Successfull!\n\nPress ENTER to exit.')
106106
return exit()
107107

108108

@@ -114,8 +114,8 @@ def Ex_1(fileType: str) -> NoReturn | None:
114114
:return: Exits program.
115115
:rtype: NoReturn
116116
"""
117-
print(
118-
f'\n\n> Operation Failure!\n\n> No Files were found with given extension: ".{fileType}".\n'
117+
input(
118+
f'\n\n> Operation Failure!\n\n> No Files were found with given extension: ".{fileType}".\n\nPress ENTER to exit.'
119119
)
120120
return exit()
121121

0 commit comments

Comments
 (0)