<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Utility - File Management, action Copy in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88748#M39244</link>
    <description>Hello all,

it's the first time I'm trying the action "Copy" from this object and it looks to me like it works (Success set to True, empty Message) when the file to be copied does not exist. Does this make any sense? Is it possible I'm looking at a modified object? Would be great if someone could share their code for this action so I can compare.

Thanks!</description>
    <pubDate>Tue, 12 Jun 2018 16:37:00 GMT</pubDate>
    <dc:creator>JuanMontero1</dc:creator>
    <dc:date>2018-06-12T16:37:00Z</dc:date>
    <item>
      <title>Utility - File Management, action Copy</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88748#M39244</link>
      <description>Hello all,

it's the first time I'm trying the action "Copy" from this object and it looks to me like it works (Success set to True, empty Message) when the file to be copied does not exist. Does this make any sense? Is it possible I'm looking at a modified object? Would be great if someone could share their code for this action so I can compare.

Thanks!</description>
      <pubDate>Tue, 12 Jun 2018 16:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88748#M39244</guid>
      <dc:creator>JuanMontero1</dc:creator>
      <dc:date>2018-06-12T16:37:00Z</dc:date>
    </item>
    <item>
      <title>The original will be in C:…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88749#M39245</link>
      <description>The original will be in C:\Program Files (x86)\Blue Prism Limited\Blue Prism Automate\VBO</description>
      <pubDate>Tue, 12 Jun 2018 18:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88749#M39245</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-06-12T18:46:00Z</dc:date>
    </item>
    <item>
      <title>I'll have a look, thanks!…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88750#M39246</link>
      <description>I'll have a look, thanks!. Just to be sure, the idea is that if the file to be copied (or moved, having the same issues with move, weird) does not exist, the action should end with Success set to False and an error message, am I right?</description>
      <pubDate>Tue, 12 Jun 2018 19:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88750#M39246</guid>
      <dc:creator>JuanMontero1</dc:creator>
      <dc:date>2018-06-12T19:06:00Z</dc:date>
    </item>
    <item>
      <title>Ok, so after checking…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88751#M39247</link>
      <description>Ok, so after checking against the original (my version of the object is indeed modified but that's not it) and having a look at the code, is it maybe that's the existance of the file needs to be checked in advance? And then checked again after the copy/move action, I guess. Not a VB expert but I'd say that the
objDirectoryInfo.GetFiles(sSourceFileName)
will return just nothing (empty list) for a non-existing file, and then the subsquent ""foreach"" will iterate through that empty list, that's do-nothing, ending with
Success = True
Message = """"
Is this explanation correct? I attached a code screenshot to support my view on this.
Thanks for the help,
Juan Montero.</description>
      <pubDate>Tue, 12 Jun 2018 20:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88751#M39247</guid>
      <dc:creator>JuanMontero1</dc:creator>
      <dc:date>2018-06-12T20:10:00Z</dc:date>
    </item>
    <item>
      <title>I think you're right Juan! I…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88752#M39248</link>
      <description>I think you're right Juan! I'll ask to get it changed.</description>
      <pubDate>Wed, 13 Jun 2018 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88752#M39248</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-06-13T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Great! In the meantime I'm…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88753#M39249</link>
      <description>Great! In the meantime I'm performing my own checks to make sure the file exists. Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-File-Management-action-Copy/m-p/88753#M39249</guid>
      <dc:creator>JuanMontero1</dc:creator>
      <dc:date>2018-06-13T19:06:00Z</dc:date>
    </item>
  </channel>
</rss>

