Oberon Community Platform Forum
November 21, 2019, 06:00:59 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A lost+found bug which breaks Find.Panel, and a solution.  (Read 3357 times)
peasthope
Full Member
***
Posts: 100


WWW
« on: November 09, 2013, 09:54:41 PM »

A filesystem on a volume on a removable store is feasible and useful.  Therefore a UnixAos working directory on a removable volume is a significant possibility.

Normally an ext filesystem contains a directory named lost+found in the root directory.  If the UnixAos working directory is on a removable volume, it will contain a lost+found directory.  When the Find.Panel is used to search in the working directory,  Files.Old("lost+found") will freeze the system.  My initial solution is to add a condition in BrowseFile.
Code:
BEGIN
    IF filename = "./lost+found" THEN RETURN END;
    Oberon.Collect;

Then in the Find.Panel, searches in lo*, in ./lo* and in ./* work.  Provided "lost+found" is not a parameter of Domain, Find.All has no problem.

lost+found might cause a problem in another module.  Can the solution be in Files and be generalized to cover any subdirectory?  Haven't tackled that yet.

Regards,               ... Peter E.
« Last Edit: November 11, 2013, 06:05:39 PM by peasthope » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!