File Mover Blog

  • 01 Aug

    How to scan a folder to look for a number of files, then start the transfer?

    Q: How to scan a folder to look for a number of files, then start the transfer? We are a licensed customer of Limagito. Is it possible to scan a folder to look for 6 files, then start the transfer?  If there are less than 6 files, none of the files are transferred.

    A: This is possible with a Windows folder/Share [WIN] as Source. We added some screenshots to get you started.

    • Add Windows folder/share as Source:

    limagito file mover source setup

    •  Open our Pascal Script option:

    limagito file mover pascal script option

    • Please enable and add the following ‘On Rule Begin’ Pascal Script (script attached in txt file). You can modify the amount (ctMinFiles) or search filter (*.*) if needed.
    Var
      tmpCounter: Integer;
    Const
      ctMinFiles = 6;
    Begin
      psExitCode := 0;
      // ... add your code here
      // If you want to scan subirectories
      // tmpCounter := psCountFiles(psSourcePath, '*.*', True);
      // In this example we will not scan the subdirectories of the source folder
      tmpCounter := psCountFiles(psSourcePath, '*.*', False);
      If tmpCounter >= ctMinFiles Then
      Begin
        psLogWrite(1, '', 'Files count successful: ' + IntToStr(tmpCounter));     
        psExitCode := 1;
      End  
      Else
        psLogWrite(1, '', 'Not enough files, count: ' + IntToStr(tmpCounter));     
    End.
    

    limagito file mover look for a number of files

    • Click F9 and check the log window in the Pascal Script setup. It should show ‘Compiled Successfully’.

    limagito file mover pascal script compile result

     

    If you need any info about this ‘look for a number of files’ question, please let us know.

    Best regards,

    Limagito Team

  • 31 Jul

    Rule runtime log doesn’t go back far enough

    Q: We had an issue with the system receiving the file Limagito moves, I want to check the Limagito logs but the rule runtime log doesn’t go back far enough. Are the runtime logs written out to a permanent log somewhere? Do we have to enable logging in anyway?

    A: The RunTime log was not created for this. It is just a ‘short’ visual log about what the File Mover is doing at the moment you use the Remote Tool.

    What you need is our ‘Logging to File’ option (History logging). Please check:
    limagito file mover logging
    – Rule File Log (aka History Log):
    limagito file mover logging setup - Rule runtime log
    Feedback user: Thank You, this is just what I was looking for.

    #mft #filetransfer #filemanagement

    If you need any info about this ‘Rule runtime log’ question, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Logging ,
  • 31 Jul

    How to upload large files to Dropbox using Limagito File Mover

    Uploading large files to Dropbox

    limagito filemover dropbox

    The default Dropbox upload API endpoint allows us to upload files up to 150MB. In version v2023.7.31.0 we optimized our code to automatically switch to a another API endpoint which allows us to upload larger files. This is all done automatically.

    When ‘Large File Mode’ is used (files > 150MB):

    • We will upload the file in blocks of 32MB
    • For each of these 32MB blocks, we will calculate and send the SHA-256 hash code
      • This hash code will be used by Dropbox to check if the received block is OK.
      • If something goes wrong during the upload of a block, we’ll retry this block up to 3 times
    • At the end we’ll receive the total hash of the uploaded file from Dropbox which we’ll compare to be 100% sure

    #dropbox #mft #filetransfer #filemanagement

    If you need any info about this new ‘Dropbox as Source and Destination’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Dropbox
1 18 19 20 21 22 23 24 135
SEARCH