RE: file's locator?

From: Wijck, Bart van <"Wijck,>
Date: Mon, 5 Aug 2002 18:01:17 +0200

----boundary-LibPST-iamunique-2112828993_-_-
Content-type: text/plain

Hi Fyodor,

Should a file know it's location? The location does not seem to me to be a
'direct' attribute of a file object, although I can imagine circumstances
where it would be nice to interrogate an object about its context.

BlackBox in any case says you have to take a directory object, and from that
derive the locator object. For example

        floc := Files.dir.This(path); (* factory method *)
        fh := Files.dir.Old(floc,filename,FALSE);
        IF fh = NIL THEN
          StdLog.String(filename); StdLog.String(' COULD NOT BE OPENED');
StdLog.Ln;
        ELSE
                fr := fh.NewReader(NIL); etc.
        END;

Regards,

> ____________________________________
> Bart van Wijck
> Senior Business Development Consultant
> Compuware BV
> Telefoon: 020 311 88 57
> Fax : 020 311 88 01
> Mobiel : 06 54 35 23 76
>


-----Original Message-----
From: ftkachov{([at]})nowhere.xy
Sent: Monday, August 05, 2002 3:53 PM
To: blackbox{([at]})nowhere.xy
Cc: ftkachov{([at]})nowhere.xy
Subject: file's locator?


Hi!

Perhaps I am missing something:

is there a way to obtain from a f:Files.File its locator?

A file ought to carry information about its location?


Thanks,
Fyodor Tkachov
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send
a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list
owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to
the mailing list. That way, the list server will recognize you as subscriber
and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are
subscribed, your message will be moderated to avoid spam. Please understand
that moderation will often cause some delay, in particular over weekends or
holydays.


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-2112828993_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIEZ5b2RvcixccGFyDQpccGFyDQpTaG91bGQg
YSBmaWxlIGtub3cgaXQncyBsb2NhdGlvbj8gVGhlIGxvY2F0aW9uIGRvZXMgbm90IHNlZW0gdG8g
bWUgdG8gYmUgYVxwYXINCidkaXJlY3QnIGF0dHJpYnV0ZSBvZiBhIGZpbGUgb2JqZWN0LCBhbHRo
b3VnaCBJIGNhbiBpbWFnaW5lIGNpcmN1bXN0YW5jZXNccGFyDQp3aGVyZSBpdCB3b3VsZCBiZSBu
aWNlIHRvIGludGVycm9nYXRlIGFuIG9iamVjdCBhYm91dCBpdHMgY29udGV4dC5ccGFyDQpccGFy
DQpCbGFja0JveCBpbiBhbnkgY2FzZSBzYXlzIHlvdSB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