oleiade/stamp — Issue #11: Fump every file content once.
Author: oleiade
Created: 2011-11-28 14:01:00+00:00
State: open
Labels: major

Today, stamper scans for files and folders content given in the command line. Then, it converts the eventually given folder as a list of the files it contains. Last, when it has got a complete list of files to apply license to, for each of them, it dumps it content (implies to open it a first time), the it re-opens it in order to write the license header content, and the license content.

This process should be optimized, by centralizing the files dumping in a unique function and a unique for statement, and maybe try to keep the file descriptors open in a list for a later usage (problem is : unix usually limits to 6 the number of concurrent file descriptors opened).