Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 2822 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

In version 1.67 on FM14 i get unexpected result of ScanLocalDirectory. As result I get all subfolders and files within subfolders. Using Windows 7 enterprise, 64 bit, and also on Windows Server 2012 R2.  Using FM13 and version 1.642 I only get files within the chosen folder, no subfolders or files from subfolders.

Bug or feature?

 

Posted

Recursively scanning the directory was added in June of 2014. Build 1.642 was released before this change, and build 1.67 was released afterwards. It's currently not setup to be toggled.

Posted

Thanks!

It is not mentioned in the documentation that also subfolders are included. You could mention it there so we know what to expect from the function, especially when it is changed.

  • 1 year later...
Posted

I find this aspect of FTPeek unsatisfactory; a mistake by 360. The recursive nature of FTPeek_ScanLocalDirectory() needs a toggle.

I am using the plugin to adapt a system which moves files that were uploaded from a directory into a subdirectory, "Archive". I want to start with a listing of the files NOT in Archive, loop through them and upload them, then move them into Archive. To use FTPeek for this feature, I would have to restructure the file system, moving Archive to a different location.

Looks like instead I'll use the free BaseElements plugin: BE_ListFilesInFolder ( $moveSource; BE_FileType_File, False). The param "BE_FileType_File shows only files of the current folder. Its prototype: BE_ListFilesInFolder ( path {; type ; includeSubdirectories ; useFullPath } ). The includeSubdirectories param defaults to false, as should FTPeek's function. See: https://baseelementsplugin.zendesk.com/hc/en-us/articles/204700868-BE-ListFilesInFolder

This topic is 2822 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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