if (bf == nullptr)
bf->Init(folderName, bfFlags);
while (bf->GetNext())
{
maxon::String sIsBundle =
"_"_s, sIsHidden =
"_"_s, sIsReadOnly =
"_"_s, sIsDir =
"_"_s;
if (bf->IsBundle())
sIsBundle = "b"_s;
if (bf->IsHidden())
sIsHidden = "h"_s;
if (bf->IsReadOnly())
sIsReadOnly = "r"_s;
if (bf->IsDir())
sIsDir = "d"_s;
else
sSize = maxon::String::MemorySizeToString(bf->GetSize());
sTimeCreated = maxon::String::IntToString(timeCreated.
year);
sTimeCreated +=
"-"_s + maxon::String::IntToString(timeCreated.
month);
sTimeCreated +=
"-"_s + maxon::String::IntToString(timeCreated.
day);
sTimeCreated +=
" "_s + maxon::String::IntToString(timeCreated.
hour);
sTimeCreated +=
":"_s + maxon::String::IntToString(timeCreated.
minute);
sTimeCreated +=
":"_s + maxon::String::IntToString(timeCreated.
second);
FileGetAttributesString(folderName + bf->GetFilename(), sAttr)
iferr_return;
ApplicationOutput(
"[@ @ @ @] - @ - @ - @ - @"_s, sIsDir, sIsBundle, sIsHidden, sIsReadOnly, sSize, sTimeCreated, sAttr, fileName);
}
Definition: ge_autoptr.h:37
Represents a date time.
Definition: c4d_file.h:789
UInt16 year
Year. (Actual year, e.g. 2005 A.D. = 2005.)
Definition: c4d_file.h:791
UInt16 hour
Actual hour. (Between 0 and 23. 4 pm = 16.)
Definition: c4d_file.h:794
UInt16 minute
Actual minute. (Between 0 and 59.)
Definition: c4d_file.h:795
UInt16 second
Actual second. (Between 0 and 59.)
Definition: c4d_file.h:796
UInt16 month
Month. (Actual month, e.g. September = 9.)
Definition: c4d_file.h:792
UInt16 day
Day. (Actual day, e.g. 30 = 30.)
Definition: c4d_file.h:793
Definition: string.h:1235
maxon::Int32 Int32
Definition: ge_sys_math.h:60
#define BROWSEFILES_CALCSIZE
Specifies if BrowseFiles::GetSize() can be called later on. Only works for files, not for folders.
Definition: c4d_file.h:915
return OK
Definition: apibase.h:2747
@ DIRECTORY
Folder selection dialog.
#define GE_FILETIME_CREATED
File time created.
Definition: c4d_file.h:907
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:210
#define iferr_return
Definition: resultbase.h:1521