Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--disable-file-system

What does --disable-file-system do?

Disable FileSystem API.

Usage

CLILaunch Chrome with --disable-file-system using CLI

chrome --disable-file-system

PuppeteerLaunch Chrome with --disable-file-system using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-file-system']
});

PlaywrightLaunch Chrome with --disable-file-system using Playwright

const browser = await chromium.launch({
  args: ['--disable-file-system']
});

SeleniumLaunch Chrome with --disable-file-system using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-file-system')

driver = webdriver.Chrome(options=options)