(self, directory)
Set the protection mark in a container or image tag
Set the protection mark in a container or image tag
Set the protection mark in a container or image tag
def _protect(self, directory):
        """Set the protection mark in a container or image tag"""
        try:
            # touch create version file
            open(directory + "/PROTECT", 'w').close()
            return True
        except (IOError, OSError):
            return False
def _protect ( self , directory ) : try : # touch create version file open ( directory + "/PROTECT" , 'w' ) . close ( ) return True except ( IOError , OSError ) : return False