Advertising
- Miscellany
- Friday, December 14th, 2007 at 2:19:08am UTC
- def _find_modes(self):
- """Determine the appropriate modes for files and directories."""
- try:
- st = self._transport.stat('.')
- except errors.TransportNotPossible:
- self._dir_mode = 0755
- self._file_mode = 0644
- else:
- self._dir_mode = st.st_mode & 07777
- # Remove the sticky and execute bits for files
- self._file_mode = self._dir_mode & ~07111
- if not self._set_dir_mode:
- self._dir_mode = None
- if not self._set_file_mode:
- self._file_mode = None
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.