LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Moving or Deleting a group of files in a directory location

    Employee
    Posted 02-26-2015 21:06

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: JamesV

    Hello, is it possible to set a Node to either delete or move all the files in a particular directory at the end of my graph?

    ie. My directory is being published with new data throughout the day, I would like to be able to run my query which will then remove the files I have just queried, and thus avoiding the same files from being queried again.

    The files have different time stamps on them...therefore they are not overwritten.

    Please supply an example graph/node if you can.

    Many thanks


  • 2.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 02-27-2015 00:04

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    You can use moveFile(from,to) to rename a file, but it can also be used to move files between folders.

    Two issues:
    1) On a Linux system, you can't move files between disks. They must be copied, then the old one deleted.
    2) This operator works on only one file at a time.. can't use wildcards.


  • 3.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 02-27-2015 00:12

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: andycooper

    As well as the moveFile function Stony mentions above you can also use the deleteFile function. The example below has been posted on here before and it possibly does a little more than you need as it is used to clean the LAE temp directory but the final node shows you how the function is used.

    Clean Temp Data.brg

    Thanks

    Andy


  • 4.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 06-17-2015 06:46

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: dstacey

    Hi,

    I just discovered this thread!

    Is there anyway in LS to delete directories as well as files?

    thanks,
    Dave


  • 5.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 09-22-2015 02:36

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Wizardous

    Hi,

    Is it possible to delete a file from an ftp folder? And how?

    Regards,

    �zg�n


  • 6.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 09-22-2015 12:52

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    @dstacey.. apologies.. I missed this question back when you posted it.

    @Wizardous.. The current FTP node doesn't support the DELE command internally. It could be added to some new version of the LAL library.

    Both of you: If you have a pressing need, we can discuss a temporary solution.


  • 7.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 10-11-2015 23:44

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Wizardous

    Hi Stony,

    Thank you for your reply. Good to know that we would see the functionality on next releases. Up to that release, we (and customer) need to remove ftp files manually. In case of any urgent need, I will let you know.

    Regards,

    �zg�n


  • 8.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 11-19-2015 07:40

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: dstacey

    Hi Stony,

    Thanks for the response - it's more of a nice to have than an urgent need - leaving empty folders doesn't sit well with my tidy nature :-)

    If support for this feature is coming in a future release I can wait.

    thanks,
    Dave


  • 9.  RE: Moving or Deleting a group of files in a directory location

    Employee
    Posted 06-09-2016 07:28

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: areuvenny

    Hey Stony,

    Has there been an update regarding deleting empty folders? I have recently run into this when clearing old files using a filter node, and though its not a pressing need I agree with @dstacey that it doesn't jive with my organized side.

    Thanks!
    -Aviad