~invernizzi/google-docs-fs/trunk

« back to all changes in this revision

Viewing changes to googledocsfs/gNet.py

  • Committer: d38dm8nw81k1ng
  • Date: 2010-03-30 20:12:47 UTC
  • Revision ID: svn-v4:74b12e24-c533-11dd-92e3-e3085bfe42ca:trunk:118
Changed name.split() to os.path.splitext(name) to try to fix the OS X bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        Returns: The gdata List Entry object containing the file or None if none exists
70
70
        """
71
71
        name = os.path.basename(path)
72
 
        title = name.split('.')[0]
 
72
        title = os.path.splitext(name)[0]
73
73
        pe = path.split('/')
74
74
        query = gdata.docs.service.DocumentQuery()
75
75
        query['title'] = title.encode(self.codec)