Article View: comp.sys.ibm.pc.programmer
Article #297Reading a directory proper
From: Frank Burleigh
Date: Wed, 11 Apr 1990 12:48
Date: Wed, 11 Apr 1990 12:48
22 lines
1230 bytes
1230 bytes
TC2's findfirst() and findnext() functions access file and directory names in a directory. But how does one read the directory per se to get access to a file's (or directory's) allocation information? I'm thinking about adding a minimal undelete to a program I'm writing and it would seem one has to follow a file's allocation chain in the FAT to do anything useful. If anyone has any C code that shows how to access the directory, and/or code that follows a file's allocation chain in the FAT, I'd be very interested in seeing it. E-mail responses would be fine. I'll summarize for those with a similar interest. Much thanks. -- Frank Burleigh burleigh@cica.cica.indiana.edu USENET: ...rutgers!iuvax!cica!burleigh BITNET: BURLEIGH@IUBACS.BITNET Department of Sociology, Indiana University, Bloomington, Indiana 47405
Technical Details
Message-ID:
<848@cica.cica.indiana.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!burleighShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!burleigh From: burleigh@cica.cica.indiana.edu (Frank Burleigh) Newsgroups: comp.sys.ibm.pc.programmer Subject: Reading a directory proper Keywords: how do you access the directory itself? Message-ID: <848@cica.cica.indiana.edu> Date: 11 Apr 90 12:48:58 GMT Distribution: na Organization: IU, Bloomington Lines: 22