Show
Ignore:
Timestamp:
12/03/07 22:22:22 (12 months ago)
Author:
asterix
Message:

os.access() on a folder under windows doesn't mean anything. fixes #3587

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.3-bugfixes/src/filetransfers_window.py

    r8630 r9092  
    327327                                else: 
    328328                                        dirname = os.path.dirname(file_path) 
    329                                         if not os.access(dirname, os.W_OK): 
     329                                        if not os.access(dirname, os.W_OK) and os.name != 'nt': 
     330                                                # read-only bit is used to mark special folder under windows, 
     331                                                # not to mark that a folder is read-only. See ticket #3587 
    330332                                                dialogs.ErrorDialog(_('Directory "%s" is not writable') % dirname, _('You do not have permission to create files in this directory.')) 
    331333                                                return