getFsType fix

This commit is contained in:
Goffi 2010-09-21 13:47:44 +08:00
parent 00d36083ba
commit c684e9c28e
1 changed files with 1 additions and 1 deletions

2
gcp
View File

@ -129,7 +129,7 @@ class GCP():
def getFsType(self, path): def getFsType(self, path):
fs='' fs=''
for mount in self.mounts: for mount in self.mounts:
if path.startswith(mount) and len(self.mounts[mount])>len(fs): if path.startswith(mount) and len(self.mounts[mount])>=len(fs):
fs = self.mounts[mount] fs = self.mounts[mount]
return fs return fs