Esempio n. 1
0
        public FileSystemHandler(FileSystem filesystem, String[] args)
        {
            _filesystem = filesystem;
            InitOperations();
            _opPtr = Operations.Allocate(_operations);

            _argsCount = args.Length;
            _argsPtr   = Arguments.Allocate(args);

            _mountPoint = args[_argsCount - 1];
        }
        public FileSystemHandler(FileSystem filesystem, String[] args, OperationsFlags specifiedFlags = None)
        {
            _filesystem = filesystem;

            var flags = specifiedFlags;

            if (flags == None)
            {
                flags = OperationsFlagsFactory.GetOperationsFlags(filesystem.GetType());
                flags = flags | Init;
            }
            InitOperations(flags);
            _opPtr = Operations.Allocate(_operations);

            _argsCount = args.Length;
            _argsPtr   = Arguments.Allocate(args);

            _mountPoint = args[_argsCount - 1];
        }