Created
June 12, 2020 06:35
-
-
Save AlexeyNik/d2f7d49323a768533093929541a91a0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://stackoverflow.com/questions/21631437/getfiles-not-folders | |
// список файлов в папке | |
var sourceFolder = new Folder("E:/Hame/_FTP/Sticker/_OLD"); | |
var fileList = sourceFolder.getFiles(function(f) { return f instanceof File; }); | |
// список директорий | |
var fileList = sourceFolder.getFiles(function(f) { return f instanceof Folder; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment