magnusk Posted January 12, 2016 Posted January 12, 2016 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?
Caleb360Works Posted January 12, 2016 Posted January 12, 2016 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.
magnusk Posted January 13, 2016 Author Posted January 13, 2016 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.
Gnurps Posted April 28, 2017 Posted April 28, 2017 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
Recommended Posts
This topic is 3128 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 accountSign in
Already have an account? Sign in here.
Sign In Now