>>>>> "jateeq" == jateeq <jawad_atiq@xxxxxxxxxxx> writes: jateeq> - list all the files/folders in the directory (i have the sha1 hash of the jateeq> directory) jateeq> - foreach file in the directory, get the file contents (recurse if there are jateeq> further subdirectories). Probably store the result in an array. jateeq> - create a file somewhere on the filesystem out of each file output above. jateeq> Store it under the directory name. jateeq> - create a tarball out of the 'working' directory as usual. Sounds like you're reinventing "git archive". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html