Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(8)  |  Derive(0)  |  Import(3)

src/i/w/iw.fss-2.8.0rc5/iw/fss/FileSystemStorage.py   iw.fss(Download)
from iw.fss.interfaces import IConf
from iw.fss.utils import copy_file
from iw.fss.utils import rm_file
from iw.fss.utils import objectImplements
 
            value.close()
            os.close(fd)
            rm_file(pathtemp)
        elif isinstance(value, Pdata):
            fd, pathtemp = tempfile.mkstemp(prefix="tempfss")
            f.close()
            os.close(fd)
            rm_file(pathtemp)
        else:
            strategy.setValueFile(value, **props)

src/i/w/iw.fss-2.8.0rc5/iw/fss/strategy.py   iw.fss(Download)
# Other imports
from iw.fss.interfaces import IStrategy
from iw.fss.utils import copy_file, move_file, rm_file
 
class BaseStorageStrategy:
        if not os.path.exists(rdf_path):
            return
        rm_file(rdf_path)
 
class DirectoryStorageStrategy(FlatStorageStrategy):
                    continue
                file_path = os.path.join(path, filename)
                rm_file(file_path)
 
        DirectoryStorageStrategy.setValueFile(self, value, **kwargs)
        if not config.options(self.cfg_filename_section):
            # Section is empty so remove config file
            rm_file(path)
        else:
            fd = open(path, 'w')
        file_path = self.getValueFilePath(**kwargs)
        if os.path.exists(file_path):
            rm_file(file_path)
        rdf_path = self.getRDFFilePath(**kwargs)
        if os.path.exists(rdf_path):

src/i/w/iw.fss-2.8.0rc5/iw/fss/conffile.py   iw.fss(Download)
 
# Products imports
from iw.fss.utils import rm_file
from iw.fss.FileSystemStorage import FileSystemStorage
from iw.fss.utils import getFieldValue
 
            if days >= max_days:
                rm_file(item['fs_path'])