Skip to content

Commit

Permalink
fix se
Browse files Browse the repository at this point in the history
  • Loading branch information
ForFishes committed Feb 5, 2024
1 parent 4bded6d commit bcd64f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/distributed/fleet/utils/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import multiprocessing
import os
import re
import shlex
import shutil
import time

Expand Down Expand Up @@ -146,6 +147,8 @@ def ls_dir(self, fs_path):
>>> subdirs, files = client.ls_dir("./")
"""
fs_path = shlex.quote(fs_path)

if not self.is_exist(fs_path):
return [], []

Expand Down

0 comments on commit bcd64f9

Please sign in to comment.