@@ -0,0 +1,1057 @@
+# Copyright 2020 Google LLC%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#    https://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%22%22%22Exports utilities helpful for dealing with the%0Afilesystem.%0A%22%22%22%0A%0Aimport os%0A%0Adef mkdir(dirname, handle_exsists=True):%0A    %22%22%22Makes directory in file system.%0A    %0A    Args:%0A        dirname: Path to the directory.%0A        handle_exsists: If true, function will fail silently if%0A            the directory allready exsists.%0A    %22%22%22%0A%0A    try:%0A        os.mkdir(dirname)%0A    except OSError as exc:%0A        if not handle_exsists:%0A            raise(%22Directory Creation Failed: %22, str(err))%0A

Create OS Helper Utility