Skip to content

Commit 66c5041

Browse files
committed
fix (DMS.directory-sync): remove unused function isInFileCatalog
1 parent ae1f809 commit 66c5041

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/DIRAC/DataManagementSystem/scripts/dirac_dms_directory_sync.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,6 @@ def getSetOfRemoteDirectoriesAndFiles(fc, path):
149149

150150
return S_OK(tree)
151151

152-
def isInFileCatalog(fc, path):
153-
"""
154-
Check if the file is in the File Catalog
155-
"""
156-
157-
result = fc.listDirectory(path)
158-
if result["OK"]:
159-
if result["Value"]["Successful"]:
160-
return S_OK()
161-
else:
162-
return S_ERROR()
163-
else:
164-
return S_ERROR()
165-
166152
def getContentToSync(upload, fc, source_dir, dest_dir):
167153
"""
168154
Return list of files and directories to be create and deleted

0 commit comments

Comments
 (0)