473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ntfw (new file tree walk) question

Hey everyone,

I am making use of ntfw() in a program of mind to find a file on the
hard drive. Currently my application only prints the name of the file
if it finds it. I would like it to show the path to the file as well.
Is there a way to have ntfw() report the current directory it is in?

I hope I am being clear, if not please let me know and I can try to
clairify.

Thanks!

Ben

Nov 14 '05 #1
7 3129
be************@gmail.com writes:
I am making use of ntfw() in a program of mind to find a file on the
hard drive. Currently my application only prints the name of the file
if it finds it. I would like it to show the path to the file as well.
Is there a way to have ntfw() report the current directory it is in?


Standard C has no facilities for dealing with directories. ntfw()
appears to be some non-standard function; personally, I had never
heard of it until now. You'll need to post in a newsgroup specific to
your system.

....

(A little Googling shows that the function is called nftw(), not
ntfw(). comp.unix.programmer is probably the best place to ask about
it.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #2
ben.lemasur...@gmail.com wrote:

Is there a way to have ntfw() report the current directory it is in?


We don't know what ntfw() is.
P.Krumins

Nov 14 '05 #3
ntfw() is the GNU standard for POSIX's ftw()

Does this help?

Nov 14 '05 #4
be************@gmail.com wrote in news:1112748419.857370.205460
@o13g2000cwo.googlegroups.com:
ntfw() is the GNU standard for POSIX's ftw()

Does this help?


Not really. Since ntfw is not a part of standard C, it is off-topic here.

See http://www.stanford.edu/~blp/writing...off-topic.html

Sinan
--
A. Sinan Unur <1u**@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
Nov 14 '05 #5
Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?

thanks again,

Ben

Nov 14 '05 #6
be************@gmail.com wrote in news:1112749507.512559.87670
@f14g2000cwb.googlegroups.com:
Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?


There are no such facilities. You'll need to use platform dependent
libraries/facilities.

Sinan
--
A. Sinan Unur <1u**@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
Nov 14 '05 #7
On Tue, 05 Apr 2005 18:05:07 -0700, ben.lemasurier wrote:
Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?


C has no concept of file searching or even directories. A good newsgroup
to discuss the POSIX facilities for these is comp.unix.programmer.

Lawrence
Nov 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Yasko | last post by:
Hi. Does anyone know if there's an equivalent of Perl's file::find module in Python? It traverses a directory. I've googled extensively and checked this newsgroup and can't find anything like it...
7
by: pembed2003 | last post by:
Hi, I have a question about how to walk a binary tree. Suppose that I have this binary tree: 8 / \ 5 16 / \ / \ 3 7 9 22 / \ / \ / \
5
by: pembed2003 | last post by:
Hi, I have a question about how to walk a binary tree. Suppose that I have this binary tree: 8 / \ 5 16 / \ / \ 3 7 9 22 / \ / \ / \
11
by: hilz | last post by:
Hi all: I have a FILE pointer that points to a file on disk (not any other io stream). is there a way to get the filename of that FILE? i thought it would be the _tmpfname part of the struct, but...
22
by: delraydog | last post by:
It's quite simple to walk to the DOM tree going forward however I can't figure out a nice clean way to walk the DOM tree in reverse. Checking previousSibling is not sufficient as the...
7
by: Hitesh | last post by:
Hi, I have a small script here that goes to inside dir and sorts the file by create date. I can return the create date but I don't know how to find the name of that file... I need file that is...
29
by: jaysherby | last post by:
I'm new at Python and I need a little advice. Part of the script I'm trying to write needs to be aware of all the files of a certain extension in the script's path and all sub-directories. Can...
10
by: rick | last post by:
In Unix, the file system hierarchy is like a tree that has a base or 'root' that exposes objects (files and folders) that can easily be iterated over. \ \ | / / \ \ | / / \ \|/ / \ | /...
3
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; We have a TreeView that represents an xml file (or it's schema is a more accurate statement). We want to have a double click on a node in the tree generate the XPath to get to that node. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.