#include "ide.h" void CopyFolder(const char *_dst, const char *_src, Index& used, bool all) { String dst = NativePath(_dst); String src = NativePath(_src); DUMP(_dst); DUMP(dst); DUMP(src); DUMP(_src); if(dst == src) return; FindFile ff(AppendFileName(src, "*")); bool realize = true; while(ff) { String s = AppendFileName(src, ff.GetName()); String d = AppendFileName(dst, ff.GetName()); DUMP(s); DUMP(d); if(ff.IsFolder()) CopyFolder(d, s, used, all); else if(ff.IsFile() && (all || used.Find(s) >= 0)) { if(realize) { RealizeDirectory(dst); realize = false; } DUMP(d); SaveFile(d, LoadFile(s)); SetFileTime(d, ff.GetLastWriteTime()); } ff.Next(); } } void Ide::ExportProject() { WithExportLayout dlg; CtrlLayoutOKCancel(dlg, "Export project"); FrameRight