1313
1414
1515def 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'\n Verifying destination for file location:\n > "{ directory } "' ,
71- 'Directory verified successfully!' , False )
71+ '\n Directory verified successfully!' , False )
7272 return True
7373 else :
7474 load (
@@ -83,17 +83,17 @@ def verify(directory: PathLike | str) -> bool:
8383
8484def 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
9999def Ex_0 () -> NoReturn | None :
@@ -102,7 +102,7 @@ def Ex_0() -> NoReturn | None:
102102 :return: Exits program.
103103 :rtype: NoReturn
104104 """
105- print ('\n \n Operation Successfull!' )
105+ input ('\n \n Operation Successfull!\n \n Press 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 \n Press ENTER to exit. '
119119 )
120120 return exit ()
121121
0 commit comments