You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "shilin-da (via GitHub)" <gi...@apache.org> on 2024/07/19 10:00:39 UTC

[I] [Bug]: Unzip workflow action change modification date to archived value on skipped files (hop)

shilin-da opened a new issue, #4143:
URL: https://github.com/apache/hop/issues/4143

   ### Apache Hop version?
   
   2.9.0 (2024-05-20 11.41.51)
   
   ### Java version?
   
   17.0.11
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   ### Input data
   - Reference ZIP archive with CSV files (e.g. `a.csv`, `b.csv`, `c.csv`) having modification date from the past, e.g. in April 2024.
   - Directory with another set of CSV files generated just now using Hop. Some of these files are having the same names as ones in ZIP archive (e.g. `a.csv`, `b.csv`, `x.csv`).
   
   ### Task
   Extract missing reference CSV files (e.g. `c.csv`) from ZIP archive to the directory preserving their original modification dates.
   
   ### Solution
   Use *Unzip file* workflow action with *Set modification date to original* flag set.
   ```
       <action>
         <name>Add missing ref files</name>
         <description/>
         <type>UNZIP</type>
         <attributes/>
         <zipfilename>${TMP_DIR}/ref_files.zip</zipfilename>
         <wildcard/>
         <wildcardexclude/>
         <targetdirectory>${DST_DIR}</targetdirectory>
         <movetodirectory/>
         <afterunzip>0</afterunzip>
         <addfiletoresult>N</addfiletoresult>
         <isfromprevious>N</isfromprevious>
         <adddate>N</adddate>
         <addtime>N</addtime>
         <addOriginalTimestamp>N</addOriginalTimestamp>
         <SpecifyFormat>N</SpecifyFormat>
         <date_time_format/>
         <rootzip>N</rootzip>
         <createfolder>N</createfolder>
         <nr_limit>10</nr_limit>
         <wildcardSource/>
         <success_condition>success_if_no_errors</success_condition>
         <iffileexists>SKIP</iffileexists>
         <create_move_to_directory>N</create_move_to_directory>
         <setOriginalModificationDate>Y</setOriginalModificationDate>
         <parallel>N</parallel>
         <xloc>496</xloc>
         <yloc>160</yloc>
         <attributes_hac/>
       </action>
   ```
   
   ### Expected result
   Directory contains all four CSV files having different modification dates:
   - `a.csv`, `b.csv`, and `x.csv`: today
   - `c.csv`: April 2024
   
   ### Actual result
   Directory contains all four CSV files having different modification dates:
   - `x.csv`: today
   - `a.csv`, `b.csv`, and `c.csv`: April 2024
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Actions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Unzip workflow action changes modification date to archived value on skipped files (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #4143:
URL: https://github.com/apache/hop/issues/4143#issuecomment-5268100116

   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Unzip workflow action changes modification date to archived value on skipped files (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #4143: [Bug]: Unzip workflow action changes modification date to archived value on skipped files
URL: https://github.com/apache/hop/issues/4143


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org