# Return the FileName with index +1 under the FilePath\r
#\r
def GetUniFileName(FilePath, FileName):\r
- Files = os.listdir(FilePath)\r
+ Files = []\r
+ try:\r
+ Files = os.listdir(FilePath)\r
+ except:\r
+ pass\r
+\r
LargestIndex = -1\r
for File in Files:\r
if File.upper().startswith(FileName.upper()) and File.upper().endswith('.UNI'):\r