/usr/lib/python2.6/site-packages/oslo_utils
NameSizeModeActions
locale/-0755rm
tests/-0755rm
encodeutils.py63090644editdlrm
encodeutils.pyc34620644editdlrm
eventletutils.py52660644editdlrm
eventletutils.pyc32300644editdlrm
excutils.py94070644editdlrm
excutils.pyc88180644editdlrm
fileutils.py28380644editdlrm
fileutils.pyc29850644editdlrm
fixture.py15560644editdlrm
fixture.pyc17320644editdlrm
fnmatch.py26000644editdlrm
fnmatch.pyc21000644editdlrm
imageutils.py66400644editdlrm
imageutils.pyc48470644editdlrm
importutils.py23590644editdlrm
importutils.pyc24720644editdlrm
netutils.py114780644editdlrm
netutils.pyc111440644editdlrm
reflection.py70150644editdlrm
reflection.pyc61910644editdlrm
secretutils.py13170644editdlrm
secretutils.pyc9980644editdlrm
strutils.py91050644editdlrm
strutils.pyc80680644editdlrm
timeutils.py147390644editdlrm
timeutils.pyc169140644editdlrm
units.py9220644editdlrm
units.pyc5930644editdlrm
uuidutils.py13490644editdlrm
uuidutils.pyc12650644editdlrm
versionutils.py26190644editdlrm
versionutils.pyc29240644editdlrm
_i18n.py11580644editdlrm
_i18n.pyc5400644editdlrm
__init__.py00644editdlrm
__init__.pyc1420644editdlrm
Edit: /usr/lib/python2.6/site-packages/oslo_utils/fileutils.pyc (2985B)
Ñò zDVc @sÄddkZddkZddkZddkZddkZddkZddklZeie ƒZ ei ei Bei BZed„Zeid„Zeied„ƒZdddd„ZdS( iÿÿÿÿN(texcutilscCsdyti||ƒWnItj o=}|itijotii|ƒp‚q[q`‚nXdS(s•Create a directory (and any ancestor directories required) :param path: Directory to create :param mode: Directory creation permissions N(tostmakedirstOSErrorterrnotEEXISTtpathtisdir(Rtmodetexc((s8/tmp/pip-build-lt8jXN/oslo.utils/oslo_utils/fileutils.pyt ensure_trees cCsDy||ƒWn/tj o#}|itijo‚q@nXdS(sDelete a file, but ignore file not found error. :param path: File to delete :param remove: Optional function to remove passed path N(RRtENOENT(Rtremovete((s8/tmp/pip-build-lt8jXN/oslo.utils/oslo_utils/fileutils.pytdelete_if_exists-s ccsKy dVWn;tj o/tiƒiiƒz||ƒWdQXnXdS(sËProtect code that wants to operate on PATH atomically. Any exception will cause PATH to be removed. :param path: File to work with :param remove: Optional function to remove passed path N(t ExceptionRtsave_and_reraise_exceptiont__exit__t __enter__(RR ((s8/tmp/pip-build-lt8jXN/oslo.utils/oslo_utils/fileutils.pytremove_path_on_error;s  tttmpcCsb|ot|ƒntid|d|d|ƒ\}}zti||ƒWdti|ƒX|S(s5Create temporary file or use existing file. This util is needed for creating temporary file with specified content, suffix and prefix. If path is not None, it will be used for writing content. If the path doesn't exist it'll be created. :param content: content for temporary file. :param path: same as parameter 'dir' for mkstemp :param suffix: same as parameter 'suffix' for mkstemp :param prefix: same as parameter 'prefix' for mkstemp For example: it can be used in database tests for creating configuration files. tsuffixtdirtprefixN(R ttempfiletmkstempRtwritetclose(tcontentRRRtfd((s8/tmp/pip-build-lt8jXN/oslo.utils/oslo_utils/fileutils.pytwrite_to_tempfileKs$(t contextlibRtloggingRtstatRt oslo_utilsRt getLoggert__name__tLOGtS_IRWXUtS_IRWXGtS_IRWXOt _DEFAULT_MODER tunlinkRtcontextmanagerRtNoneR(((s8/tmp/pip-build-lt8jXN/oslo.utils/oslo_utils/fileutils.pyts