~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/gs/src/tool_genfd.erl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
-module(tool_genfd).
21
21
-include_lib("kernel/include/file.hrl").
22
22
 
23
 
-compile(export_all).
 
23
-export([create/2,
 
24
         close/1,
 
25
         hide/3,
 
26
         get_files/1,
 
27
         set_dir/2,
 
28
         init/3,
 
29
         get_all/1]).
24
30
 
25
31
%% Trick: Store Dir without trailing "/" => then up (cd ..) becomes
26
32
%%        easy, just: filename:dirname(Dir)!
45
51
hide(FD,Dir,File) ->
46
52
    FD ! {hide,Dir,File}.
47
53
 
48
 
show(FD,Dir,File) ->
49
 
    FD ! {show,Dir,File}.
50
 
 
51
54
get_files(FD) ->
52
55
    req(FD,get_files).
53
56