Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244150
filesystem.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
297 B
Referenced Files
None
Subscribers
None
filesystem.cc
View Options
#include
"HEJ/filesystem.hh"
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<unistd.h>
namespace
HEJ
{
bool
is_regular
(
char
const
*
filename
)
{
struct
stat
buf
;
const
int
err
=
stat
(
filename
,
&
buf
);
if
(
err
)
{
return
false
;
}
return
S_ISREG
(
buf
.
st_mode
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 4:39 AM (10 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6420169
Default Alt Text
filesystem.cc (297 B)
Attached To
Mode
rHEJ HEJ
Attached
Detach File
Event Timeline
Log In to Comment