News for hackers. Stuff that matters.
Re:Posix Has Become Outdated (2016) [pdf] by pjmlp on Saturday February 11, 2017 @03:25PM (#13624600)
Apparently you forgot to read the part where I mentioned "Languages like Python?".

    import glob
    import shutil
     
    whitelist =  set(open('Whitelist').read().split())
    for fd in [ x for x in glob.glob('mydir/*', recursive=True) if x in whitelist]:
       shutil.copy(fd, 'OUTPUT')

Better, no need to create temporary files.

There are no comments on this comment yet.