Changeset 7d77faa in tol
- Timestamp:
- Jul 2, 2010, 7:54:54 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- cfa4cf7
- Parents:
- 0e7a82f
- File:
-
- 1 edited
-
tol/bbasic/dir.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/dir.cpp
r0e7a82f r7d77faa 430 430 p = fp+GetFileName(p); 431 431 } 432 if(endSlash )432 if(endSlash && !IsSlash(p.Last())) 433 433 { 434 434 p += "/"; … … 451 451 //-------------------------------------------------------------------- 452 452 { 453 //if(!path_.HasName()) { return(path_); } 454 /* 455 #if defined(UNIX) 456 char* ret_path = new char[PATH_MAX]; 457 if(realpath(path_.String(), ret_path)==NULL) { 458 Error(path_+":"+strerror(errno)); 459 } 460 return BText(ret_path); 461 #else 462 */ 453 bool endSlash = IsSlash(path_.Last()); 463 454 BText path = GetAbsolutePath(path_); 464 455 #ifdef WIN32 … … 469 460 path.Copy(fName,len); 470 461 path.Replace("\\","/"); 462 #else 463 //VBR: hay que buscar alguna forma de estandarizar el path en linux 464 //eliminando cosas inútiles como /./ 465 #endif 466 if(endSlash && !IsSlash(path.Last())) 467 { 468 path += "/"; 469 } 471 470 return(path); 472 #else473 return path;474 #endif475 /*476 #endif477 */478 471 } 479 472
Note: See TracChangeset
for help on using the changeset viewer.
