dirent.h
Getting size of files in a directory
I trying to get size of files in a directory by using dirent.h headers. However stat(ent->d_name, &statbuf)[详细]
2023-02-21 17:06 分类:问答How can I get a dirent struct from a string path?
If given a directory path in the开发者_JAVA百科 form of a std::string, how can I get a dirent struct pointing to that directory?[详细]
2023-02-17 18:13 分类:问答How do I check if a directory is a file or folder? [duplicate]
This question already has answers here: Accessing Directories in C (3 answers) Closed 7 years ago. Okay, so I\'m using mingW, and the direct struct has no variables named d_type or stat,[详细]
2023-01-18 05:59 分类:问答How can DIR* get EBADF error?
I have some code that I have inherited which is part of a class for iterating, accessing the directory content and uses boost::filesystem::path.The code reads in part:[详细]
2023-01-15 06:41 分类:问答Do you know a Haskell package for dirent.h on Windows?
Do you know a Haskell package for dirent开发者_JAVA技巧.h on Windows? There is similar set of functions in system.posix but those functions are not implemented on Windows.[详细]
2023-01-04 06:18 分类:问答How to use dirent.h correctly
I am new to C++ and I am experimenting with the dirent.h header to manipulate directory entries. The following little app compiles but pukes after you supple a directory name. Can someone give me a hi[详细]
2023-01-03 01:43 分类:问答Cross platform way of testing whether a file is a directory
Currently I have som开发者_C百科e code like (condensed and removed a bunch of error checking): dp = readdir(dir);[详细]
2022-12-19 07:08 分类:问答