KiCad PCB EDA Suite
|
Functions | |
FILE * | SeqFOpen (const wxString &aPath, const wxString &mode) |
Opens the file like fopen but sets flags (if available) for sequential read hinting. | |
bool | DuplicatePermissions (const wxString &aSrc, const wxString &aDest) |
Duplicates the file security data from one file to another ensuring that they are the same between both. | |
bool | IsFileHidden (const wxString &aFileName) |
Helper function to determine the status of the 'Hidden' file attribute. | |
bool KIPLATFORM::IO::DuplicatePermissions | ( | const wxString & | aSrc, |
const wxString & | aDest | ||
) |
Duplicates the file security data from one file to another ensuring that they are the same between both.
This assumes that the user has permission to set #aDest
Definition at line 40 of file unix/io.cpp.
Referenced by EDA_BASE_FRAME::CheckForAutoSaveFile(), PCB_EDIT_FRAME::GenIPC2581File(), FP_CACHE::Save(), PL_EDITOR_FRAME::SaveDrawingSheetFile(), PCB_EDIT_FRAME::SavePcbFile(), SCH_EDIT_FRAME::saveSchematicFile(), FOOTPRINT_LIST_IMPL::WriteCacheToFile(), STEP_PCB_MODEL::WriteGLTF(), STEP_PCB_MODEL::WritePLY(), STEP_PCB_MODEL::WriteSTEP(), and STEP_PCB_MODEL::WriteSTL().
bool KIPLATFORM::IO::IsFileHidden | ( | const wxString & | aFileName | ) |
Helper function to determine the status of the 'Hidden' file attribute.
Definition at line 63 of file unix/io.cpp.
Referenced by PROJECT_TREE_PANE::addItemToProjectTree().
FILE * KIPLATFORM::IO::SeqFOpen | ( | const wxString & | aPath, |
const wxString & | mode | ||
) |
Opens the file like fopen but sets flags (if available) for sequential read hinting.
Only use this variant of fopen if the file is truely going to be read sequentially only otherwise you may encounter performance penalities.
Windows in particular is a little ulgy to set the sequential scan flag compared to say linux and it's posix_fadvise
Definition at line 30 of file unix/io.cpp.
Referenced by FILE_LINE_READER::FILE_LINE_READER().