@@ -101,7 +101,7 @@ def main():
101101 if ms :
102102 CINFO ['tpath' ] = ms .group (1 )
103103 else :
104- tinfo = PgFile .check_rda_file (RDACP ['t' ], RDACP ['th' ], 0 , PgLOG .LGWNEX )
104+ tinfo = PgFile .check_gdex_file (RDACP ['t' ], RDACP ['th' ], 0 , PgLOG .LGWNEX )
105105 if tinfo and tinfo ['isfile' ] == 0 : CINFO ['tpath' ] = RDACP ['t' ]
106106 PgLOG .PGLOG ['FILEMODE' ] = RDACP ['F' ]
107107 PgLOG .PGLOG ['EXECMODE' ] = RDACP ['D' ]
@@ -141,9 +141,9 @@ def copy_top_list(files):
141141
142142 for file in files :
143143 if RDACP ['th' ] and not PgUtil .pgcmp (RDACP ['th' ], PgLOG .PGLOG ['BACKUPNM' ], 1 ):
144- info = PgFile .check_globus_file (file , 'rda -glade' , 0 , PgLOG .LGWNEX )
144+ info = PgFile .check_globus_file (file , 'gdex -glade' , 0 , PgLOG .LGWNEX )
145145 else :
146- info = PgFile .check_rda_file (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
146+ info = PgFile .check_gdex_file (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
147147 if not info :
148148 PgLOG .pglog ("{}{}: {}" .format (CINFO ['fhost' ], file , PgLOG .PGLOG ['MISSFILE' ]), PgLOG .LOGERR )
149149 continue
@@ -165,7 +165,7 @@ def copy_top_list(files):
165165 if info ['isfile' ]:
166166 CINFO ['tcnt' ] += copy_file (file , info ['isfile' ])
167167 elif dosub or RDACP ['R' ]:
168- flist = PgFile .rda_glob (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
168+ flist = PgFile .gdex_glob (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
169169 if flist : copy_list (flist , 1 , file )
170170 else :
171171 PgLOG .pglog ("{}{}: Add option -r to copy directory" .format (CINFO ['fhost' ], file ), PgLOG .LGEREX )
@@ -182,7 +182,7 @@ def copy_list(tlist, level, cdir):
182182 fcnt += copy_file (file , tlist [file ]['isfile' ])
183183 CINFO ['cpflag' ] |= (1 if tlist [file ]['isfile' ] else 2 )
184184 elif level < RDACP ['R' ]:
185- flist = PgFile .rda_glob (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
185+ flist = PgFile .gdex_glob (file , RDACP ['fh' ], 0 , PgLOG .LGWNEX )
186186 if flist : copy_list (flist , level + 1 , file )
187187
188188 if fcnt > 1 : # display sub count if two or more files are copied
@@ -203,7 +203,7 @@ def copy_file(fromfile, isfile):
203203 else :
204204 tofile = RDACP ['t' ]
205205
206- return (1 if PgFile .copy_rda_file (tofile , fromfile , RDACP ['th' ], RDACP ['fh' ], PgLOG .LGWNEX ) else 0 )
206+ return (1 if PgFile .copy_gdex_file (tofile , fromfile , RDACP ['th' ], RDACP ['fh' ], PgLOG .LGWNEX ) else 0 )
207207
208208#
209209# call main() to start program
0 commit comments