1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
|
2005-10-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.8 ========================
*
2005-09-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test (tempdir-1.2): Added code to remove the env
variable TEMP as well. It is set on my host and can thus
interfere with the test.
2005-06-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Fixed a bug in find, where it excluded symbolic
* fileutil.tcl: links if the destination was circular. This is
wrong. The link itself can be listed in the result, it just must
not be followed. Otherwise even non-circular links are not listed.
2005-02-14 Andreas Kupries <andreask@activestate.com>
* fileutil.man (find): Documented the implicit arguments to the
filter command (current working directory). This fixes [SF
Tcllib Bug 1048995].
2005-02-10 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (fileutil::jail): Fixed a problem reported by Pat
Thoyts. Test jail-2.1 failed on windows. The reason was improper
handling of volume-relative paths. They have to be handled like
absolute paths, but were not. Changed the initial if condition a
bit to fix this.
2005-02-09 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Made glob patterns platform-dependent. This fixes
[SF Tcllib Bug 1098039].
2005-02-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Added test case for the handling of dot-files by
[find]. This is for [SF Tcllib Bug 1098039].
2005-02-07 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Completed implementation and testing of the 'jail'
command which ensures that a path is inside a specific
directory. Implemented a 'LexNormalize' helper
command.
* fileutil.test: Added additional test for 'jail' beyond our
current suite.
2005-02-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Implemented command 'stripPath'. Like 'stripPwd'
for a general prefix path [SF Tcllib RFE 1040372].
* fileutil.test: Added tests for 'stripPath.
* fileutil.man: Documented 'stripPath'.
2005-02-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Added tests for the 'Normalize' forward
compatibility wrapper. Got them from the Tcl testsuite for 'file
normalize'. Added tests for the new 'jail' command.
* fileutil.tcl: Wrote a forward compatibility implementation of
'file normalize', for use with a Tcl core < 8.4. Updated the
(non)use of 'file normalize' by 'tempdir' and 'tempfile'.
Updated the namespace export clause. Implemented the 'jail'
command [SF Tcllib RFE 111076].
2005-02-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Extended tests for the case of inacessible
directories.
* fileutil.tcl (find): Fixed SF [Tcllib Bug 1111153]. This is the
same as [Tcllib SF Bug 862491]. Catching problems now when
cd'ing into the chosen base directory, and ignoring all
directories for which the [cd] fails (permissions).
2005-01-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.man: Fixed the doctools syntax error in the new text
from the last entry.
2005-01-26 David N. Welton <davidw@dedasys.com>
* fileutil.man: Added a small note on the measure used to count
elements in fileutil::stripN.
2004-10-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.7 ========================
*
2004-09-29 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Introduced a "makeBinaryFile" command to ensure
the correct generation of the example files which contain
binary. Thanks to Greg Baker <gregb@ifost.org.au> for noticing
the problem on his Mac OS X box and helping in debugging it.
2004-09-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Fixed platform problems in testsuite, bad
characters in filenames for Windows.
2004-06-16 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (fileType): Added code to recognize files written
in the doctools, doctoc, and docidx documentation formats.
2004-05-30 Aaron Faupell <afaupell@users.sourceforge.net>
* fileutil.tcl: added tests for dos executables, tar, zip, bmp, wav, and mp3 to fileType
* fileutil.man: updated to reflect new types for fileType
2004-05-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Updated version number to sync with 1.6.1
* fileutil.man: release.
* pkgIndex.tcl:
2004-05-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.6.1 ========================
*
2004-05-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Rel. engineering. Updated version number
* fileutil.man: of fileutil to reflect its changes, to 1.6.1.
* pkgIndex.tcl:
2004-05-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Cleaning up after Aaron. Updated the test
filetype-1.12 to look for the extended return value of fileType
when applied to jpeg images. The last checkin changed this, but
the test was not updated as well, most likely not even
run. Found and corrected during release preparation and testing.
2004-05-11 Aaron Faupell <afaupell@users.sourceforge.net>
* fileutil.tcl: updated the jpeg test to recognize exif format
2004-02-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.6 ========================
*
2004-02-09 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: The tempdir tests used advanced test syntax not
available before 8.4 (IIRC). Not useable for 8.2. Ditto the lot of
the install tests also used 8.3 and 8.4 features. Straightened
the bad syntax out (killed the tests), and added proper
constraints to the tests.
* fileutil.tcl: Ooops. fileutil is certified for usage with Tcl
8.2, there is no [file normalize] before 8.4. Made the usage
(See 2004-02-03) conditional.
2004-02-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Modified the tests a bit to use glob characters
in file names to check that the code is robust against that too.
See http://bugs.activestate.com/show_bug.cgi?id=29491
2004-02-03 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (tempdir, tempfile): Now [file normalize]'ing the
results of these two commands. More windows friendly.
2004-01-28 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl (fileutil::find): Fixed bug in handling a single
file as base directory: The initial list was not set up as a
list, and the test results (see below) were not listified either
for these cases. That broke down for paths containing
spaces. Also fixed: Neither the windows nor the pre-8.4 version
of the command had been modified to deal with a single file.
Oversight from the change @ 2003-10-22 by David N. Welton
<davidw@dedasys.com>.
Regularized a number of error returns.
* fileutil.test: Changed testsuite to use files and directories
containing spaces in their names. A number of tests
failed. Modified the tempdir tests to better exclude and
manipulate the environment to enforce the wanted result.
2004-01-23 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (fileType): The check for an attached metakit
database left a channel on the tested file open. This causes the
application to leak channels, and on windows the file is also
locked against deletion. Fixed.
2003-11-15 David N. Welton <davidw@dedasys.com>
* fileutil.man: Added new test and docs for change below.
* fileutil.tcl (::fileutil::cat): Make cat accept multiple files
(bug [830075]).
2003-10-27 Andreas Kupries <andreask@activestate.com>
* fileutil.man: Better formatting of the new docs.
2003-10-25 David N. Welton <davidw@dedasys.com>
* fileutil.man: Documented 'fileutil::tempdir' algorithm.
2003-10-23 Andreas Kupries <andreask@activestate.com>
* fileutil.man: Updated documentation, added description of
'fileutil::tempdir'.
2003-10-23 David N. Welton <davidw@dedasys.com>
* fileutil.test (tempdir): Added a few very simple tests for
tempdir under Unix.
* fileutil.tcl (::fileutil::tempdir): Added tempdir
implementation.
(::fileutil::tempfile): Use new tempdir command.
2003-10-22 David N. Welton <davidw@dedasys.com>
* fileutil.tcl (::fileutil::find): Change Unix version of find
command to accept a file (as opposed to a directory) as an
argument. This reflects the behavior of the Unix find
command. This change also needs to be added to the windows
version, but should probably be done by someone who can test it
on that platform.
(::fileutil::install): -m option only works on Unix, as far as I
know.
(::fileutil::install): Make sure correct thing is chmod'ed.
* fileutil.test: Added tests for find to check that it works ok
with a single file as an argument. Also, error out if initial
file does not correspond to 'isfile' or 'isdirectory'.
2003-09-03 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (fileutil::fileType): Fixed the SourceForge Tcllib
bug [795585]. We are now allowing whitespace between the #! and
path of the script interpreter. Extended to identify metakit
databases, also when attached to another file.
(tempfile): Added 'global env', access to 'env' was bad, causing
malfunction on windows.
2003-08-12 Andreas Kupries <andreask@activestate.com>
* fileutil.man: Fixed a bad call of [cmd] in the documentation of
the new install command. Always use 'sak validate moldule' to
validate the whole module, or 'sak text module' when wishing to
validate only the documentation.
2003-08-06 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (find): The fix for SF tcllib bug [647974]
introduced a tcl command new to tcl 8.4. This command is
[file system]. Changing the code to exclude dev/inode checking
only for 8.4 and above. For versions of Tcl below 8.4. the fix
is not required as they do not have virtual filesystem
support. This fixes SF tcllib bug [784157].
2003-08-06 David N. Welton <davidw@dedasys.com>
* fileutil.man: Added documentation for the new 'install' command.
* fileutil.tcl (::fileutil::install): Added 'install' command,
which is similar in functionality to the Unix install command - it
is basically file copy with some additional features.
* fileutil.test: Added tests for 'install' fileutil command.
2003-07-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Bumped version to 1.5.1 as this is a bug fix. Any bug fixes and
more minor changes coming in the future do not have to bump the
version number anymore until the next release. Only a major
change warrants another bump before the release.
* fileutil.tcl: Fixed SF tcllib bug [647974]. We now ignore
device/inode information if the current path is in a virtual
filesystem. We also assume now that VFS's do not support links,
thus also obviating the need for the data, circles cannot occur.
2003-05-09 Andreas Kupries <andreask@activestate.com>
* fileutil.tcl (::fileutil::tempfile): Braced [expr].
2003-05-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
*
* Released and tagged Tcllib 1.4 ========================
*
2003-05-01 Pat Thoyts <patthoyts@users.sourceforge.net>
* fileutil.tcl: The touch command cannot be implemented in Tcl
* fileutil.test: versions < 8.3 so do not define the command.
* fileutil.man: Noted in documentation and skipped tests.
2003-04-23 Andreas Kupries <andreask@pliers.activestate.com>
* fileutil.man:
* fileutil.tcl: Added command [tempfile]. Was part of tcllib patch
611595, but has a better place here.
2003-04-11 Andreas Kupries <andreask@activestate.com>
* fileutil.man:
* fileutil.tcl:
* pkgIndex.tcl: Set version of the package to to 1.5.
2003-04-02 Andreas Kupries <andreask@activestate.com>
* fileutil.test (fileutil): Fixed tcllib SF bug #714214 reported
by Pat Thoyts, by working around the 'makeFile' command provided
with tcltest. It seems to have issues when doing binary data.
2003-03-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl (fileutil::touch): Applied patch #688965 provided
by Glenn Jackman <glennjnn@users.sourceforge.net>. This patch
provides a better message when asking the [fileutil::touch]
command for help.
2003-03-24 Andreas Kupries <andreask@activestate.com>
* fileutil.test:
* fileutil.man:
* fileutil.tcl: Fixed bug #707009, reported by Helmut Giese
<hgiese@users.sourceforge.net>, also updated the documentation
and the testsuite.
2003-01-28 David N. Welton <davidw@dedasys.com>
* fileutil.tcl (::fileutil::fileType): Use 'string match' instead
of regexp. Require Tcl 8.2.
2003-01-16 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.man: More semantic markup, less visual one.
2002-10-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl:
* fileutil.man:
* fileutil.test: Accepted enhanced format detection by Philip
Ehrens <pehrens@ligo.caltech.edu>.
2002-05-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl (cat): Fixed bug #556504, reported by Michael
A. Cleverly <cleverly@users.sourceforge.net>. The fix was
provided by Michael too. The problem was reading files which are
reported as size 0, but actually have content, just dynamically
generated (Linux /proc is an example of an fs containing such
files).
2002-05-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.man: Documented the two new commands (stripN,
stripPwd).
* fileutil.tcl: Made up my mind about SF Bug #462015. The proposed
interface change to [find] is rejected to keep the interface of
the library procedure simple and without hidden surprises =
KISS. Added a command [stripPwd] instead which can be used by
the caller of [find] to make the returned paths relative to the
current working directory. Also added [stripN] to strip a fixed
number of elements from the beginning of a path.
2002-04-12 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.man: Added doctools manpage.
* fileutils.n: Updated to reflect change of version.
2002-03-20 Eric Melski <ericm@ajubasolutions.com>
* Bumped version to 1.4
* fileutil.n:
* fileutil.test:
* fileutil.tcl: Added fileType command posted to comp.lang.tcl by
Phil Ehrens, with some minor modifications.
2002-01-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Bumped version to 1.3
2001-12-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test: Restricted tests 2.2 and 2.3 to the directory
structure created for the test and not the whole directory the
test is run in. Bugfix for item #486572.
2001-11-06 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.test:
* fileutil.n:
* fileutil.tcl: Applied patch #477805 by Glenn Jackman
<glennjnn@users.sourceforge.net> implementing the unix 'touch'
command. Contains documentation and testsuite for the new
command too.
2001-09-05 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Restricted export list to public API.
[456255]. Patch by Hemang Lavana
<hemanglavana@users.sourceforge.net>
2001-08-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* All of the changes below are related to tcllib Patch [449531] by
Anselm Lingnau <lingnau@users.sourceforge.net>. Instead of
taking in the proposed highlevel 'fileinput' I added some of the
more low-level commands from Tclx which can be used to
create/compose 'fileinput'.
* pkgIndex.tcl: Moved version of fileutil to 1.2.
* fileutil.test: Added tests for the new commands. Moved version
of fileutil to 1.2.
* fileutil.n: Added documentation of the new commands. Moved
version of fileutil to 1.2.
* fileutil.tcl (findByPattern, foreachLine): New commands, modeled
after TclX's 'recursive_glob' and 'for_file'. Moved version of
fileutil to 1.2.
2001-07-31 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.n: Added manpage documenting the commands. tcllib Bug
[446584].
2001-06-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: Fixed dubious code reported by frink.
2001-03-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* fileutil.tcl: [Bug #410104, Patch #410106]
New implementation of ::fileutil::find for unixoid OSs using
stat and device/inode configuration to detect and break circular
softlink structures. This implementation also skips un'stat'able
files and directories.
* fileutil.test: Added fileutil-1.4 testing the circle breaker
(only under unix).
2000-03-10 Eric Melski <ericm@scriptics.com>
* fileutil.test:
* fileutil.tcl: Added cat function, duplicates standard UNIX "cat"
utility.
2000-03-09 Eric Melski <ericm@scriptics.com>
* fileutil.test: Collected tests into one file; adapted tests for
use in/out of tcllib test framework.
|