textures unpacker

As part of a toolbox I create I want to have a button that put textures together from a scene. The idea is to use external files pack then unpack.

import bpy


I want to choose the directory path. Is it possible? I guess having a path entry then a “save it all!” button would be great

maybe something like this but that won’ t work :confused:

for img in bpy.data.images:
if img.users:
bpy.data.images(img).filepath = ‘//mytextures/’

SORRY! wrong place. I’ll post it in Python Support.