# File lib/fastcst/changeset.rb, line 424
424:         def initialize(dir, path, out)
425:             @path = path
426:         
427:             Dir.chdir dir do
428:                 @symlink = File.symlink? @path
429:                 @mtime = File.mtime path
430:             
431:                 if @symlink
432:                     # it's a symlink so record the target path
433:                     UI.event :symlink, "Storing #@path as a symlink rather than a new file"
434:                     @symlink_target = File.readlink(@path)
435:                 else
436:                     # regular file so go to town
437:                     data = File.read @path
438:                     @length = data.length
439:                     UI.event :create, "#@path #@length"
440:                     out.write data
441:                 end
442:             end
443:         end