Vreixo Formoso
1756cf4c92
Fix a bug in iso_tree_path_to_node().
...
With paths where the last directory component is an existing
non-directory in the ISO image and the leafname is any name it
incorrectly returns 1 (node found).
Bug reported by Thomas Schmitt.
14 years ago
Vreixo Formoso
7b0da1ecd6
Add a function to get the path of a node in the IsoImage.
15 years ago
Vreixo Formoso
d455f9b540
Add support for cut-out files.
15 years ago
Vreixo Formoso
69fe1d6074
Implement iso_tree_add_new_file() to add new files from scratch.
15 years ago
Vreixo Formoso
0c69463c5a
Add support for adding a node with a given name.
15 years ago
Vreixo Formoso
16cfaf9059
Replace non standard FNM_FILE_NAME with POSIX FNM_PATHNAME.
15 years ago
Vreixo Formoso
99298c10a4
Move error codes to libisofs.h. Remove error.h header.
15 years ago
Vreixo Formoso
b6362a8680
Add wildcard support to excludes.
15 years ago
Vreixo Formoso
ff0dd38e9f
Add support for excluding arbitrary files when adding a dir recursively.
15 years ago
Vreixo Formoso
b3f4ca1cf7
Add IsoImage context as parameter for return function.
15 years ago
Vreixo Formoso
307a98815e
src renamed to libisofs.
15 years ago
Vreixo Formoso
3528f9d0ef
Add new replace modes.
15 years ago
Vreixo Formoso
0131ce5ff0
Expose replace mode.
15 years ago
Vreixo Formoso
bd893a8cfa
Base tree add functions in low level node new functions.
15 years ago
Vreixo Formoso
8b7d9eddb6
Move recOpts to IsoImage and remove that unneeded struct.
15 years ago
Vreixo Formoso
a282a7581e
Expose report callback.
15 years ago
Vreixo Formoso
74f65d6833
Change ISO_FILE_CANT_ADD severity from WARNING to SORRY.
15 years ago
Vreixo Formoso
c272228590
Removed stop_on_error, now replaced by iso_set_abort_severity().
15 years ago
Vreixo Formoso
ab7ea855f6
Optionally pass to message function the reason of an error.
15 years ago
Vreixo Formoso
6964f02308
Replace message functions with new infraestructure that supports abort
...
on error.
15 years ago
Vreixo Formoso
4a62d80a7e
Fix bug related to image import.
15 years ago
Vreixo Formoso
1070fe4cc6
Several improves in error codes.
...
- Code severity and priority in error codes.
- Added ERROR severity, suitable for function failures.
- Review libisofs errors and its severity.
15 years ago
Vreixo Formoso
a076ae9df2
Simplify function to recursively add a directory.
15 years ago
Vreixo Formoso
df5aa263ec
Replace per Image messenger with a global one, and use image id instead.
15 years ago
Vreixo Formoso
5fe04ccfb2
Add option to ignore special files.
15 years ago
Vreixo Formoso
4da469a3bf
Addapt recursive addition function to new replace enum.
15 years ago
Vreixo Formoso
f118b0a48d
Encapsulate insertion of nodes in node.c. Define replace behavior.
15 years ago
Vreixo Formoso
2464455fea
Guard against bad link destinations.
15 years ago
Vreixo Formoso
1459801134
Ensure names of public tree IsoNodes are valid POSIX names.
15 years ago
Vreixo Formoso
22c73dc343
Add image contents recursively and volume attributes.
15 years ago
Vreixo Formoso
baf7f14b11
Change get_path() definition in IsoFileSource.
15 years ago
Vreixo Formoso
e18f5d8898
Change message functions signature.
15 years ago
Vreixo Formoso
a2645cbf40
Expose several tree options, to control recursive dir addition.
15 years ago
Vreixo Formoso
501275279d
Change recOpts in Image, it can be part of the Image struct, not a ptr.
15 years ago
Vreixo Formoso
71cd3ccb89
Check access to file contents before adding it to public iso tree.
15 years ago
Vreixo Formoso
26a04559c7
Some fixes to memory leak bugs.
15 years ago
Vreixo Formoso
4c9d83f051
Define code style formatter for eclipse and apply it to source.
15 years ago
Vreixo Formoso
a161f4249c
Improve IsoFileSource interface implementation.
15 years ago
Vreixo Formoso
159b775d22
Improve message functions to support message formating in printf style.
15 years ago
Vreixo Formoso
0a340c53d5
Fix bug in open() function for local file srcs, to deal with symlinks.
15 years ago
Vreixo Formoso
60d68df84c
Expose iso_node_set_hidden(), to let a node be hidden in RR/ISO or Joliet tree.
15 years ago
Vreixo Formoso
d10ed353e2
Implement function to recursively add a dir to an iso tree.
...
This commit also to the following changes:
- create_node() on builder never frees the IsoFileSource, it is responsability
of the caller to free it.
- Recursive addition options added to IsoImage (not exposed to public API yet)
- create_node() takes care about follow_symlinks
- Added little demo program to test it.
15 years ago
Vreixo Formoso
008871cfd8
Additon of nodes based on Builder. Pass Image as a parameter to builder methods.
15 years ago
Vreixo Formoso
b03fbf0ee0
Implement function to get node from path on image. Little unit test too.
15 years ago
Vreixo Formoso
45f4d0a29e
Add function to add an exiting file to the iso tree.
...
Node is created using a builder. Default builder and filesystem is added
to IsoImage. Later we should expose setters for this atts.
15 years ago
Vreixo Formoso
7f9c5c9065
Unit test for tree functions. Little fixes.
15 years ago
Vreixo Formoso
5df6b2c3d2
Fix bug in tree functions.
15 years ago
Vreixo Formoso
b2d41de603
Allow adding of special files to iso tree node.
15 years ago
Vreixo Formoso
007be29c6d
Fix little bug: ensure number of children is incremented when adding a
...
new node to a dir.
15 years ago
Vreixo Formoso
f62c34776f
Begin implementation of tree operations.
15 years ago