Back to home page

OSCL-LXR

 
 

    


0001 ---
0002 layout: global
0003 title: ADD FILE
0004 displayTitle: ADD FILE
0005 license: |
0006   Licensed to the Apache Software Foundation (ASF) under one or more
0007   contributor license agreements.  See the NOTICE file distributed with
0008   this work for additional information regarding copyright ownership.
0009   The ASF licenses this file to You under the Apache License, Version 2.0
0010   (the "License"); you may not use this file except in compliance with
0011   the License.  You may obtain a copy of the License at
0012  
0013      http://www.apache.org/licenses/LICENSE-2.0
0014  
0015   Unless required by applicable law or agreed to in writing, software
0016   distributed under the License is distributed on an "AS IS" BASIS,
0017   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0018   See the License for the specific language governing permissions and
0019   limitations under the License.
0020 ---
0021 
0022 ### Description
0023 
0024 `ADD FILE` can be used to add a single file as well as a directory to the list of resources. The added resource can be listed using [LIST FILE](sql-ref-syntax-aux-resource-mgmt-list-file.html).
0025 
0026 ### Syntax
0027 
0028 ```sql
0029 ADD FILE resource_name
0030 ```
0031 
0032 ### Parameters
0033 
0034 * **resource_name**
0035 
0036     The name of the file or directory to be added.
0037 
0038 ### Examples
0039 
0040 ```sql
0041 ADD FILE /tmp/test;
0042 ADD FILE "/path/to/file/abc.txt";
0043 ADD FILE '/another/test.txt';
0044 ADD FILE "/path with space/abc.txt";
0045 ADD FILE "/path/to/some/directory";
0046 ```
0047 
0048 ### Related Statements
0049 
0050 * [LIST FILE](sql-ref-syntax-aux-resource-mgmt-list-file.html)
0051 * [LIST JAR](sql-ref-syntax-aux-resource-mgmt-list-jar.html)
0052 * [ADD JAR](sql-ref-syntax-aux-resource-mgmt-add-jar.html)
0053