57017

Is the nftw(file tree walk) function available on Windows

Question:

I'm writing code to walk a directory and its subdirs on linux using nftw. Is the nftwfunction available on Windows?

Answer1:

Not as part of the standard Windows APIs, no.

Also note that <a href="http://linux.die.net/man/3/nftw" rel="nofollow">the manual page</a> claims:

<blockquote>

Conforming To POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks ftw() as obsolete.

</blockquote>

So it's perhaps not the best starting point even when targetting POSIX.

Still, <a href="http://gnuwin32.sourceforge.net/packages/libgw32c.htm" rel="nofollow">this library</a> implements it for Windows.

Recommend

  • Can someone please explain how this implementation of bucket sort works?
  • Unity 5.1 Animator Controller not transitioning
  • Get rendered html code in Backing Component from Composite Component
  • record audio in HTML / js without Flash?
  • Javascript focus remove text highlight
  • pandas computation in each group
  • crash in __tcf_0
  • How to turn (A, B, C) into (AB, AC, BC) with Pig?
  • List comprehension with if conditional to get list of files of a specific type
  • Implement JwtBearer Authentication in NSwag SwaggerUi
  • Getting short path in python
  • Access user's phone number on iOS 7
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • Azure table store snapshot/backup capability
  • Suppressing passwd when calling sqlplus from shell script
  • How to make JSON.NET deserialize to Microsoft Date Time?
  • How to get current document uri in XSLT?
  • Security issues with PHP's Readfile method
  • SharedPreferences or SQLite Database?
  • How to use carriage return with multiple line?
  • Control modification in presentation layer
  • What is Eclipse's Declaration View used for?
  • Sony Xperia Z Tablet not found by adb
  • Validaiting emails with Net.Mail MailAddress
  • Javascript convert timezone issue
  • Which linear programming package should I use for high numbers of constraints and “warm starts” [clo
  • Javascript + PHP Encryption with pidCrypt
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Adding custom controls to a full screen movie
  • Do I've to free mysql result after storing it?
  • Jquery - Jquery Wysiwyg return html as a string
  • SVN: Merging two branches together
  • Confusion with PayPal's monthly billing cycle
  • Benchmarking RAM performance - UWP and C#
  • Acquiring multiple attributes from .xml file in c#
  • How do you join a server to an Active Directory (domain)?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • Append folder name and increment by 1 using batch script
  • java string with new operator and a literal