magnusk

ScanLocalDirectory FTPeek 1.67 and FM14

4 posts in this topic

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?

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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