1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
11 exception GenericError
15 exception PermissionDenied extends GenericError {};
16 exception NameInUse extends GenericError {};
17 exception NoSuchName extends GenericError {};
21 idempotent string name();
22 void destroy() throws PermissionDenied;
25 sequence<string> Lines;
27 interface File extends Node
29 idempotent Lines read();
30 idempotent void write(Lines text) throws GenericError;
33 enum NodeType { DirType, FileType };
42 sequence<NodeDesc> NodeDescSeq;
44 interface Directory extends Node
46 idempotent NodeDescSeq list();
47 idempotent NodeDesc find(string name) throws NoSuchName;
48 File* createFile(string name) throws NameInUse;
49 Directory* createDirectory(string name) throws NameInUse;