Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy directory / Copy all files of a directory

Featured Replies

Hello,

I need to copy a directory and its content to an external drive. I've seen and experimented the CopyFile function of Scriptmaster. Two questions :



  1. Is there a way to adapt it to copy a directory by passing in src /Volumes/Data/Desktop/Xtine/for example ?
  2. If not is it possible to say copy all files (equivalent of use jokers *.*) ?

Thanks for your answers ?

Noël

We are actually looking for same thing but we'd also like something that can compare the backup to the source (essentially looks at the backup folders and files and when there are changes in the source, update only what has changed - like a smart update backup function). Any thoughts?

Hello,

I need to copy a directory and its content to an external drive. I've seen and experimented the CopyFile function of Scriptmaster. Two questions :



  1. Is there a way to adapt it to copy a directory by passing in src /Volumes/Data/Desktop/Xtine/for example ?
  2. If not is it possible to say copy all files (equivalent of use jokers *.*) ?

Thanks for your answers ?

Noël

Noel,

You can use a combination of the List All Files In Directory, List all Files Recursively, and Move or Rename File modules along with FileMaker scripting to do what you are looking for.

JLC,

There is not currently a module to do this that comes with scriptmaster. If you would like us to write an additional module or make a custom plugin for you to do this, please send an email to [email protected] along with details about what you need it to do and we will send you a quote.

  • Author

Noel,

You can use a combination of the List All Files In Directory, List all Files Recursively, and Move or Rename File modules along with FileMaker scripting to do what you are looking for.

I'll try to understand and perhaps build he solution you describe... but I'm at a small level !

Noël

JLC, I was wrong actually. There is a Get File Modification Date module which you could use for checking to see if a file has been modified since you last checked it.

The lazy way ...

Commons-IO-2.0.1.Jar

// Usage : CopyDirectory ( fm_source ; fm_destination )

// 2011_04_10

// v1

// jar : Commons-IO-2.0.1.Jar @ http://commons.apache.org/io/



import org.apache.commons.io.FileUtils

 

source = new File( fm_source );

destination = new File( fm_destination );

try {

    FileUtils.copyDirectory( source , destination  )

    return 1

} catch (IOException e) {

    return e

}

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.