An aspect of the present invention stores files of a source directory in a
target directory. In an embodiment, a unique identifier is generated for
each of the files and a new location and a new name are generated for the
file. The new location represents the specific sub-directory of the
target at which the file is stored. The file is stored at the new
location with the new name. Such storing in a new location with a new
name can be advantageously used to address various issues in
corresponding environments. In one environment, the target directory is
stored in an embedded system, with limited resources and the source
directory contains several files with substantial overlapping names
(which can require substantial resources to search for a specific file).
The unique identifiers are generated according to media transfer protocol
(MTP), which generates an object identifier for each of the
files/directories, etc.