def get_file_size(file_path):        

    file_size = None
    
    try:
        file_size = os.path.getsize(file_path);
    except:
        logger.warn('Problem publishing dataset {0}. Unable to retrieve file size for resource: {1}.'.format(args.dataset_name,file_path))        
    
    return file_size
Get pillar cache directory. Initialize it if it does not exist.
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/get_file_size--crossover with--dataset/ETHPy150Open saltstack/salt/salt/pillar/s3.py/_get_cache_dir