Skip to content

Instantly share code, notes, and snippets.

@AlexeyNik
Created June 12, 2020 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeyNik/d2f7d49323a768533093929541a91a0a to your computer and use it in GitHub Desktop.
Save AlexeyNik/d2f7d49323a768533093929541a91a0a to your computer and use it in GitHub Desktop.
//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